Skip to content

Commit

Permalink
fix: npm version prerelease when invoked from mangata-node repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tenequm committed Nov 9, 2023
1 parent b184426 commit a0dd287
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pre-release-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ jobs:
- name: NPM version bump
if: ${{ github.event.inputs.branch != '' }}
working-directory: packages/types
env:
INPUTS_BRANCH: ${{ github.event.inputs.branch }}
run: |
npm version prerelease --preid=${{ github.event.inputs.branch }}
# Branch name sanitization added to avoid issues with npm version command
# Example `ci/new-branch` -> `ci-new-branch`
npm version prerelease --preid="${INPUTS_BRANCH//\//-}"
- name: git add and commit new version
if: ${{ github.event.inputs.branch != '' }}
Expand Down

0 comments on commit a0dd287

Please sign in to comment.