Run the release workflow on dev only (#2999)

This commit is contained in:
Paweł Kuna authored and Bartek committed 2026-10-02 12:04:11 +02:00
1 parent 754bb92cc8
commit 1d7e57ae39
1 file changed
+1 -5
+1 -5
View File
@@ -4,7 +4,6 @@ on:
push:
branches:
- dev
- v2-dev
permissions:
contents: read
@@ -45,15 +44,12 @@ jobs:
- name: Check backward compatibility
run: pnpm run check:compat --strict
# Both branches get their own "chore: update versions" PR. Only `dev` publishes:
# `v2-dev` carries a major changeset, and an empty publish-script keeps the action
# from shipping 2.0.0 to npm as `latest` once that PR is merged.
- name: Create release Pull Request or publish to NPM
id: changesets
uses: changesets/action@ae32849d5ba541f9ae29e40e22a623bc13562f51 # v2.1.2
with:
version-script: pnpm run version
publish-script: ${{ github.ref_name == 'dev' && 'pnpm run publish' || '' }}
publish-script: pnpm run publish
commit-message: "chore: update versions"
pr-title: "chore: update versions"
# Push through git instead of the GitHub API: the API mode force-updates