Skip to content

Commit

Permalink
ci: dont let npm publish commit
Browse files Browse the repository at this point in the history
  • Loading branch information
radiovisual committed Oct 20, 2024
1 parent 5a9d8db commit e1a2fd8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
echo "IS_PRE_RELEASE=false" >> $GITHUB_ENV
echo "RELEASE_TAG=latest" >> $GITHUB_ENV
fi
- run: npm version ${{ env.RELEASE_VERSION }} --no-git-tag-version
- run: npm version ${{ env.RELEASE_VERSION }} --no-git-tag-version --no-commit
- run: npm run build
- name: Publish to npm
run: npm publish --tag ${{ env.RELEASE_TAG }}
Expand All @@ -43,12 +43,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Show package.json and package-lock.json changes
run: |
cat package.json
cat package-lock.json
git diff
# Create a Pull Request with the version bump if the release is not a pre-release
- name: Create Pull Request for Version Bump
if: success() && env.IS_PRE_RELEASE == 'false'
Expand Down

0 comments on commit e1a2fd8

Please sign in to comment.