-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove autoversioning, require publish (with brackets) in commit mess…
…age to publish to npm
- Loading branch information
Showing
1 changed file
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
|
||
publish: | ||
name: Publish to npm | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[publish]') | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
|
@@ -50,7 +50,4 @@ jobs: | |
id: publish # Assign an ID to this step | ||
run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Automated Version Bump | ||
if: steps.publish.outcome == 'success' | ||
uses: phips28/[email protected] | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |