Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 10 additions & 6 deletions .github/workflows/changeset-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,19 @@ jobs:
- uses: actions/checkout@v4
- uses: Khan/actions@shared-node-cache-v3
with:
node-version: 20.x
node-version: 24.x

- name: ⬆️ Upgrade npm for OIDC support
- name: Check npm supports trusted publishing
shell: bash
run: |
# npm trusted publishing requires npm CLI v11.5.1+
# Node.js 22 ships with npm 10.x, so we need to upgrade
npm install -g npm@latest
echo "✅ npm upgraded to $(npm --version)"
# npm trusted publishing (OIDC) requires npm CLI v11.5.1+. Node.js 24
# bundles a new enough npm, so we check it rather than upgrading: an
# unpinned upgrade can pull in an npm that needs a newer Node.js.
npx --yes semver@7 --range '>=11.5.1' "$(npm --version)" > /dev/null || {
echo "::error::npm $(npm --version) is too old for trusted publishing; it needs 11.5.1 or later."
exit 1
}
echo "✅ npm $(npm --version) supports trusted publishing"

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
node-version: [24.x]
steps:
- uses: actions/checkout@v4
- uses: Khan/actions@shared-node-cache-v3
Expand Down
Loading