Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ jobs:
name: bump, publish to npm, and tag
runs-on: ubuntu-latest
# Skip the version-bump commit this workflow itself pushes.
if: github.event_name == 'workflow_dispatch' || !contains(github.event.head_commit.message, '[skip release]')
# Match the subject only: a squash-merge body can mention the phrase.
if: >-
github.event_name == 'workflow_dispatch' ||
!startsWith(github.event.head_commit.message, 'chore(release):')
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -50,7 +53,7 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
npm version patch -m "chore(release): %s [skip release]"
npm version patch -m "chore(release): %s"
echo "tag=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT"

- name: Publish to npm
Expand Down
Loading