Skip to content

Commit abd2cde

Browse files
committed
Cut a release tag on publish.
1 parent a8b1b81 commit abd2cde

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,16 @@ jobs:
1919
- run: npm publish
2020
env:
2121
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
22+
- uses: sergeysova/jq-action@v2
23+
name: Derive Version
24+
id: version
25+
with:
26+
cmd: 'jq .version package.json -r'
27+
- uses: elgohr/Github-Release-Action@v5
28+
name: Create Tag
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
title: Release ${{ steps.version.outputs.value }}
33+
tag: ${{ steps.version.outputs.value }}
2234

0 commit comments

Comments
 (0)