mirror of
https://github.com/zoriya/v10.git
synced 2026-08-13 17:40:12 +00:00
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:
co-authored by
Claude Opus 4.6
parent
dd113777ba
commit
1cab75c2ef
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user