There was an error while loading. Please reload this page.
1 parent a8d6d84 commit 3229886Copy full SHA for 3229886
1 file changed
.github/workflows/publish.yaml
@@ -18,6 +18,10 @@ 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
@@ -26,6 +30,6 @@ jobs:
30
run: npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version
31
28
32
- name: Publish to npm
29
- run: npm publish --tag v${{ steps.version.outputs.VERSION }}
33
+ run: npm publish --tag ${{ steps.branch.outputs.BRANCH_NAME }}
34
env:
35
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments