generated from casperiv0/ts-project-template
-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (32 loc) · 982 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Test releases
on:
push:
branches:
- main
jobs:
create_release:
name: Create release and publish
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.head_commit.message, 'chore(release)') && !contains(github.event.head_commit.message, '[skip ci]')
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install root dependencies
run: pnpm i
- name: Install dependencies NUI
run: cd integrations/sync/nui-dev && pnpm i
- name: build integrations
run: pnpm run build
- name: Zip integrations
run: pnpm run build:zip
- name: Create GitHub release
run: node ./scripts/action-zip.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}