Skip to content

Commit

Permalink
ci: publish v2
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Aug 8, 2024
1 parent 1b8e3c7 commit 10a5315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-npm_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
- name: Determine NPM Tag
id: determine-npm-tag
run: |
VERSION_TAG=${{ github.event.inputs.version }}
VERSION_TAG="${{ github.event.inputs.version }}"
if [[ $VERSION_TAG == *"-"* ]]; then
echo "NPM_TAG=${VERSION_TAG#*-}" >> $GITHUB_ENV
else
echo "NPM_TAG=latest" >> $GITHUB_ENV
- name: Publish to NPM
run: yarn publish --new-version ${{ github.event.inputs.version }} --tag ${{ steps.determine-npm-tag.outputs.NPM_TAG }} --no-git-tag-version
run: yarn publish --new-version "${{ github.event.inputs.version }}" --tag "${{ env.NPM_TAG }}" --no-git-tag-version
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 10a5315

Please sign in to comment.