Skip to content

Commit 456c8ff

Browse files
authored
add version to release name
1 parent af67c9d commit 456c8ff

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/node.js.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@ jobs:
2222
- run: npm ci
2323
- run: npm run build --if-present
2424
- run: cp src/meta.user.js build/userscript.meta.js
25+
- name: Get version
26+
id: version
27+
uses: notiz-dev/github-action-json-property@release
28+
with:
29+
path: package.json
30+
prop_path: version
2531
- name: Create Release
2632
# You may pin to the exact commit or the version.
2733
# uses: ncipollo/release-action@10c84d509b28aae3903113151bfd832314964f2e
2834
uses: ncipollo/[email protected]
2935
with:
3036
token: ${{ secrets.GITHUB_TOKEN }}
31-
tag: v${{ github.run_number }}
32-
name: release v${{ github.run_number }}
37+
tag: v${{ steps.version.outputs.prop }}-${{ github.run_number }}
38+
name: release v${{ steps.version.outputs.prop }}-${{ github.run_number }}
3339
artifacts: build/*
3440
artifactErrorsFailBuild: true

0 commit comments

Comments
 (0)