Skip to content

Commit

Permalink
remove autoversioning, require publish (with brackets) in commit mess…
Browse files Browse the repository at this point in the history
…age to publish to npm
  • Loading branch information
QarthO committed Aug 9, 2024
1 parent 2125de1 commit 3d912ff
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 3d912ff

Please sign in to comment.