From 612d839dde78aa5a02e32ef0039d27668dfebf93 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Jun 2026 10:00:17 +0000 Subject: [PATCH 1/2] Add OIDC npm publish workflow --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..b60b553cb --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Publish + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + publish: + name: Publish to npm + runs-on: ubuntu-latest + environment: npm-publish + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + registry-url: https://registry.npmjs.org + cache: npm + # Trusted publishing via OIDC requires npm 11.5.1 or newer. + - run: npm install -g npm@latest + - run: npm ci + - run: npm publish --provenance --access public From 76f8374fdda62575f33ef92eb9134368cf08e65f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Jun 2026 10:04:25 +0000 Subject: [PATCH 2/2] Use Node 24 for npm publish workflow --- .github/workflows/publish.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b60b553cb..0f3c0cf04 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,10 +17,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org cache: npm - # Trusted publishing via OIDC requires npm 11.5.1 or newer. - - run: npm install -g npm@latest - run: npm ci - run: npm publish --provenance --access public