We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c33a3 commit 18cd9d9Copy full SHA for 18cd9d9
.github/workflows/publish-node.js.yml
@@ -17,10 +17,13 @@ jobs:
17
with:
18
node-version: 16
19
cache: 'npm'
20
- - name: Set env
21
- run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
22
- - name: Publish Package
23
- uses: JS-DevTools/npm-publish@v1
24
- with:
25
- token: ${{ secrets.NPM_TOKEN }}
26
- tag: ${{ env.RELEASE_VERSION }}
+ - run: npm version ${{ github.event.release.tag_name }}
+ - run: npm publish
+ env:
+ # Use a token to publish to NPM. See below for how to set it up
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+ # push the version changes to GitHub
+ - run: git push
27
28
+ # The secret is passed automatically. Nothing to configure.
29
+ github-token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments