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: 6 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- v21

permissions: {}

Expand All @@ -21,6 +22,7 @@ jobs:
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
target-branch: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}

publish:
Expand Down Expand Up @@ -49,4 +51,7 @@ jobs:
- name: Publish to NPM registry
working-directory: dist/cps-ui-kit
# Trusted publishing: token is intentionally empty, auth comes from OIDC.
run: NODE_AUTH_TOKEN="" npm publish
# No --tag on master keeps default npm behavior (publishes to "latest").
# Release branches get a "-support" suffix: npm rejects a dist-tag that is a
# valid semver range, and e.g. "v21" parses as one (>=21.0.0 <22.0.0-0).
run: NODE_AUTH_TOKEN="" npm publish ${{ github.ref_name != 'master' && format('--tag {0}-support', github.ref_name) || '' }}
Loading