mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-30 06:22:04 +00:00
ci: switch NPM publishing to Trusted Publishing (OIDC)
Replace static NPM_TOKEN with OIDC-based authentication for improved security. This uses NPM's Trusted Publishing feature which: - Eliminates need for long-lived tokens - Provides provenance attestation - Is the recommended approach by npm Requires configuring Trusted Publishing in npm package settings: - Repository owner: czlonkowski - Repository name: n8n-mcp - Workflow filename: release.yml Conceived by Romuald Członkowski - www.aiadvisors.pl/en 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -308,6 +308,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [detect-version-change, build-and-verify, create-release]
|
needs: [detect-version-change, build-and-verify, create-release]
|
||||||
if: needs.detect-version-change.outputs.version-changed == 'true'
|
if: needs.detect-version-change.outputs.version-changed == 'true'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write # Required for NPM Trusted Publishing (OIDC)
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -393,9 +396,7 @@ jobs:
|
|||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
command: |
|
command: |
|
||||||
cd npm-publish-temp
|
cd npm-publish-temp
|
||||||
npm publish --access public
|
npm publish --access public --provenance
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|
||||||
- name: Clean up
|
- name: Clean up
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Reference in New Issue
Block a user