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
8 changes: 7 additions & 1 deletion .github/actions/nodejs/action.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
---
name: "Setup Node.JS"
description: "Setup Node.JS binaries, dependencies and cache"
inputs:
node-version:
description: "Node.js version to use"
required: false
default: "20"
runs:
using: composite
steps:
- name: Setup Node.JS
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: ${{ inputs.node-version }}
registry-url: "https://registry.npmjs.org"

- name: Enable corepack
shell: bash
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Required for NPM publish
permissions:
id-token: write
contents: read

jobs:
release-npm:
name: Release NPM packages
Expand Down Expand Up @@ -120,8 +125,11 @@ jobs:
echo "NPM suffix: ${{ steps.suffix.outputs.result }}"
echo "NPM release tag: ${{ steps.tag.outputs.result }}"

- name: Configure NPM auth token
run: yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
# We need NodeJS 24 for https://docs.npmjs.com/trusted-publishers
- name: Setup Node.JS
uses: ./.github/actions/nodejs
with:
node-version: 24

- name: Publish NPM packages
run: yarn workspaces foreach --all --no-private --parallel npm publish --tolerate-republish --access public --tag ${{ steps.tag.outputs.result }}
Expand Down
Loading