mirror of
https://github.com/lukaszraczylo/cloudflare-crawl-mcp.git
synced 2026-10-20 07:37:51 +00:00
ci(release): publish to npm via trusted publishing
Use Node 22 and npm 11.5.1 or later so the release job can authenticate with OIDC. Keep NPM_TOKEN as a fallback until a publish succeeds.
This commit is contained in:
@@ -58,10 +58,14 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
if: steps.version.outputs.version_tag != ''
|
if: steps.version.outputs.version_tag != ''
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '22'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Upgrade npm for trusted publishing
|
||||||
|
if: steps.version.outputs.version_tag != ''
|
||||||
|
run: npm install -g npm@^11.5.1
|
||||||
|
|
||||||
- name: Publish to npm
|
- name: Publish to npm
|
||||||
if: steps.version.outputs.version_tag != ''
|
if: steps.version.outputs.version_tag != ''
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user