Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanco committed Nov 20, 2023
1 parent 849760e commit 96db712
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pre-release-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ jobs:
INPUTS_BRANCH: ${{ github.event.inputs.branch }}
run: |
# Branch name sanitization added to avoid issues with npm version command
# Example `ci/new-branch` -> `ci-new-branch`
npm version prerelease --preid="${INPUTS_BRANCH//\//-}"
# Example `ci/new-branch-1.0.0` -> `ci-new-branch-1-0-0`
npm version prerelease --preid="$(echo "${INPUTS_BRANCH}" | sed -E 's@[/\.]@-@g')"
- name: git add and commit new version
if: ${{ github.event.inputs.branch != '' }}
Expand All @@ -144,8 +144,8 @@ jobs:
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
# Branch name sanitization added to avoid issues with npm version command
# Example `ci/new-branch` -> `ci-new-branch`
npm publish --tag "${INPUTS_BRANCH//\//-}" --access public
# Example `ci/new-branch-1.0.0` -> `ci-new-branch-1-0-0`
npm publish --tag "$(echo "${INPUTS_BRANCH}" | sed -E 's@[/\.]@-@g')" --access public
- name: Publish rc to NPM
if: ${{ github.event.inputs.branch == '' }}
Expand Down

0 comments on commit 96db712

Please sign in to comment.