Skip to content

Commit 4151e25

Browse files
authored
add support of meta.js
1 parent d63fcf1 commit 4151e25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/node.js.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ on:
88
branches: [ main ]
99
pull_request:
1010
branches: [ main ]
11-
workflow_dispatch:
1211

1312
jobs:
1413
make-release:
1514
runs-on: ubuntu-latest
16-
1715
steps:
1816
- uses: actions/checkout@v2
1917
- name: Use Node.js ${{ matrix.node-version }}
@@ -23,6 +21,7 @@ jobs:
2321
cache: 'npm'
2422
- run: npm ci
2523
- run: npm run build --if-present
24+
- run: cp src/meta.user.js build/userscript.meta.js
2625
- name: Create Release
2726
# You may pin to the exact commit or the version.
2827
# uses: ncipollo/release-action@10c84d509b28aae3903113151bfd832314964f2e
@@ -31,4 +30,5 @@ jobs:
3130
token: ${{ secrets.GITHUB_TOKEN }}
3231
tag: v${{ github.run_number }}
3332
name: release v${{ github.run_number }}
34-
artifact: build/calculator.user.js
33+
artifacts: build/*
34+
artifactErrorsFailBuild: true

0 commit comments

Comments
 (0)