Publish n8n node #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish n8n node | |
| # n8n verified community nodes must be published from GitHub Actions with npm | |
| # provenance (mandatory since 2026-05-01). Requires the NPM_TOKEN repo secret. | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: ['n8n-v*'] | |
| permissions: | |
| contents: read | |
| id-token: write # npm provenance (OIDC) | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: packages/n8n-nodes-taskade | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org | |
| - run: npm install --ignore-scripts # types-only build; skip native compiles (isolated-vm) | |
| - run: npm run build | |
| - run: npm publish --provenance --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |