feat(cd): switch to npm trusted publishers

Replace NPM_TOKEN with OIDC-based trusted publishing. Bump Node to
24 LTS (bundles npm 11 which supports OIDC). Add @videojs/store and
@videojs/element to release-please config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-02-26 15:21:38 -06:00
co-authored by Claude Opus 4.6
parent dd113777ba
commit 1cab75c2ef
7 changed files with 19 additions and 15 deletions
+1 -9
View File
@@ -39,16 +39,10 @@ jobs:
if: ${{ steps.release.outputs.releases_created == 'true' }}
uses: pnpm/action-setup@v4
- name: read node version from the .nvmrc file
if: ${{ steps.release.outputs.releases_created == 'true' }}
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
shell: bash
id: nvmrc
- uses: actions/setup-node@v5
if: ${{ steps.release.outputs.releases_created == 'true' }}
with:
node-version: ${{steps.nvmrc.outputs.NODE_VERSION}}
# this line is required for the setup-node action to be able to run the npm publish below.
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Install
@@ -75,5 +69,3 @@ jobs:
- name: Publish
if: ${{ steps.release.outputs.releases_created == 'true' }}
run: pnpm -r publish --filter "./packages/*" publish --access public --provenance --tag next --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 22
node-version-file: '.nvmrc'
cache: pnpm
- name: Install dependencies