We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9171cee commit 977d5e9Copy full SHA for 977d5e9
.github/workflows/publish.yml
@@ -11,8 +11,11 @@ jobs:
11
with:
12
node-version: latest
13
registry-url: 'https://registry.npmjs.org'
14
+ cache: npm
15
- run: npm ci
16
- run: npm test
17
+ - name: Get latest tag and update version in package.json file
18
+ run: npm version $(git tag | sort -r --version-sort | head -n1 | cut -c2-) -no-git-tag-version -f
19
- run: npm publish
20
env:
21
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments