Skip to content

Commit

Permalink
fix: apply version number on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
radiovisual committed Feb 18, 2024
1 parent 91ab572 commit e72a58b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Michael Wuergler"
- run: npm ci
- run: npm version "${GITHUB_REF:10}"
- name: Extract version from tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- run: npm version ${{ env.RELEASE_VERSION }}
- run: npm run build
- run: npm publish
env:
Expand Down

0 comments on commit e72a58b

Please sign in to comment.