mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-30 06:22:04 +00:00
fix: revert to Node 20 and use granular NPM token
NPM classic tokens were revoked on Dec 9, 2025. OIDC trusted publishing requires npm >= 11.5.1 which caused lockfile sync issues with npm ci. Reverted to Node 20 with granular access token approach: - Removed OIDC permissions block - Removed npm upgrade step - Restored NODE_AUTH_TOKEN usage - Removed --provenance flag User created new granular token with "Bypass 2FA" enabled. 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:
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -308,25 +308,17 @@ 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
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 20
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- name: Upgrade npm for OIDC support
|
|
||||||
run: |
|
|
||||||
npm install -g npm@latest
|
|
||||||
echo "npm version: $(npm --version)"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
@@ -401,8 +393,10 @@ jobs:
|
|||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
command: |
|
command: |
|
||||||
cd npm-publish-temp
|
cd npm-publish-temp
|
||||||
npm publish --access public --provenance
|
npm publish --access public
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Clean up
|
- name: Clean up
|
||||||
if: always()
|
if: always()
|
||||||
run: rm -rf npm-publish-temp
|
run: rm -rf npm-publish-temp
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "n8n-mcp",
|
"name": "n8n-mcp",
|
||||||
"version": "2.29.4",
|
"version": "2.29.5",
|
||||||
"description": "Integration between n8n workflow automation and Model Context Protocol (MCP)",
|
"description": "Integration between n8n workflow automation and Model Context Protocol (MCP)",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "n8n-mcp-runtime",
|
"name": "n8n-mcp-runtime",
|
||||||
"version": "2.29.4",
|
"version": "2.29.5",
|
||||||
"description": "n8n MCP Server Runtime Dependencies Only",
|
"description": "n8n MCP Server Runtime Dependencies Only",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user