Skip to content

Commit

Permalink
chore: update workflow release script with fixed version prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed May 16, 2024
1 parent 008b7ab commit 02cd895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
name: 'OTP to publish package'
description: 'OTP from authenticator app'
- name: Fixed Version Release
- name: Fixed Version Release ⚙️ / NPM Publish 📦
if: ${{ inputs.version != '' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -93,7 +93,7 @@ jobs:
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
npm whoami
npx release-it ${{ inputs.version }} --ci --dry-run --plugins.'@release-it/conventional-changelog'.ignoreRecommendedBump=false
npx release-it ${{ inputs.version }} --ci --plugins.'@release-it/conventional-changelog'.ignoreRecommendedBump=false --npm.otp=${{ steps.wait-for-secrets.outputs.OTP }}
- name: GitHub Release 🏷️ / NPM Publish 📦
if: ${{ inputs.dryrun != true && inputs.version == '' }}
Expand Down

0 comments on commit 02cd895

Please sign in to comment.