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 3229886 commit 2a64259Copy full SHA for 2a64259
.github/workflows/publish.yaml
@@ -18,10 +18,6 @@ jobs:
18
node-version: '24'
19
registry-url: 'https://registry.npmjs.org'
20
21
- - name: Get branch name
22
- id: branch
23
- run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
24
-
25
- name: Get version from tag
26
id: version
27
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
@@ -30,6 +26,6 @@ jobs:
30
run: npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version
31
32
28
- name: Publish to npm
33
- run: npm publish --tag ${{ steps.branch.outputs.BRANCH_NAME }}
29
+ run: npm publish --tag ${{ github.ref_name }}
34
env:
35
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments