Skip to content

Commit cba3697

Browse files
committed
Meta: Fix publish script
1 parent 9848053 commit cba3697

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@ jobs:
2323
- uses: actions/setup-node@v3
2424
with:
2525
node-version: 18
26+
registry-url: 'https://registry.npmjs.org'
2627
- run: npm ci || npm install
2728
- uses: fregante/setup-git-user@v2
2829
- name: Create version
29-
run: VERSION="$(npm version "${{ github.event.inputs.Version }}")"
3030
# Get the generated version, this enables support for keywords: `npm version patch`
31+
run: |
32+
VERSION="$(npm version "${{ github.event.inputs.Version }}")"
33+
echo "VERSION=$VERSION" >> $GITHUB_ENV
3134
- run: npm publish
3235
env:
3336
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
- run: git push --follow-tags
3438
- run: gh release create "$VERSION" --generate-notes
3539
env:
3640
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)