Skip to content

Commit

Permalink
Meta: Fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Apr 10, 2023
1 parent 9848053 commit cba3697
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm ci || npm install
- uses: fregante/setup-git-user@v2
- name: Create version
run: VERSION="$(npm version "${{ github.event.inputs.Version }}")"
# Get the generated version, this enables support for keywords: `npm version patch`
run: |
VERSION="$(npm version "${{ github.event.inputs.Version }}")"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push --follow-tags
- run: gh release create "$VERSION" --generate-notes
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit cba3697

Please sign in to comment.