Skip to content

Commit

Permalink
fix: install semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
bompo committed Oct 30, 2024
1 parent a048357 commit ed566cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,13 @@ jobs:
path: dist/
- name: Configure npm authentication
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Install semantic-release
run: npm install semantic-release
- name: Determine next version
id: next_version
run: |
# Determine the next version using semantic-release
npx semantic-release --dry-run
NEXT_VERSION=$(npx semantic-release --dry-run | grep "The next release version is" | sed -E 's/.*The next release version is ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
echo "NEXT_VERSION=$NEXT_VERSION" >> $GITHUB_ENV
- name: Update package.json version
Expand Down

0 comments on commit ed566cc

Please sign in to comment.