Skip to content

Commit

Permalink
Merge pull request #111 from radiovisual/apply-version-on-publish
Browse files Browse the repository at this point in the history
ci: apply version number on publish
  • Loading branch information
radiovisual authored Feb 18, 2024
2 parents 91ab572 + e72a58b commit bbf3e17
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 bbf3e17

Please sign in to comment.