Skip to content

Commit 3466606

Browse files
authored
Update release.yml
1 parent 38dc6eb commit 3466606

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/release.yml

+6-13
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
tags:
66
- "*"
77

8-
env:
9-
NODECG_VERSION: latest
10-
118
jobs:
129
build:
1310
runs-on: ubuntu-latest
@@ -24,21 +21,17 @@ jobs:
2421
with:
2522
file: cq-dashboard.zip
2623
overwrite: true
27-
28-
- uses: dsaltares/fetch-gh-release-asset@master
24+
- uses: actions/checkout@v3
2925
with:
30-
repo: nodecg/nodecg
31-
version: ${{ env.NODECG_VERSION }}
32-
file: "nodecg-.*\\.tgz"
33-
regex: true
34-
- run: tar zxvf nodecg-*.tgz
35-
- run: mv package/ nodecg/
36-
- run: npm i --omit=dev
37-
working-directory: ./nodecg
26+
repository: nodecg/nodecg
27+
path: nodecg
28+
ref: v1.9.0
3829
- run: curl https://nodejs.org/dist/latest-v18.x/win-x64/node.exe --output nodecg/node.exe
3930
- run: echo "node.exe index.js" > nodecg/run.bat
4031
- run: mkdir nodecg/bundles/cq-dashboard
4132
- run: cp -r dashboard package.json LICENSE nodecg/bundles/cq-dashboard
33+
- run: npm i --production
34+
working-directory: ./nodecg
4235
- run: zip -r cq-nodecg.zip nodecg/
4336
- uses: svenstaro/upload-release-action@v2
4437
with:

0 commit comments

Comments
 (0)