Skip to content

Commit 0c769d8

Browse files
committed
trying to create the release on github as well 2
1 parent 7910b7c commit 0c769d8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,22 @@ jobs:
3636
with:
3737
token: ${{ secrets.NPM_TOKEN }}
3838
provenance: true
39+
- name: Create tag
40+
if: steps.publish.outputs.type
41+
uses: actions/github-script@v6
42+
with:
43+
script: |
44+
github.rest.git.createRef({
45+
owner: context.repo.owner,
46+
repo: context.repo.repo,
47+
ref: 'refs/tags/v${{ steps.publish.outputs.version }}',
48+
sha: context.sha
49+
})
3950
- name: Create a Github Release when a version was published
4051
if: steps.publish.outputs.type
4152
uses: ncipollo/release-action@v1
4253
with:
54+
tag: v${{ steps.publish.outputs.version }}
4355
name: v${{ steps.publish.outputs.version }}
4456
makeLatest: true
4557

0 commit comments

Comments
 (0)