1.4.0 #2
Workflow file for this run
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
| # Publish to npm via OIDC trusted publishing (required). | |
| # Configure at https://www.npmjs.com/package/n8n-nodes-cove → Settings → Publishing access → GitHub Actions. | |
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - '*.*.*' | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.19.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.22.3' | |
| cache: pnpm | |
| # Do NOT set registry-url here — it writes _authToken=${NODE_AUTH_TOKEN} to .npmrc, | |
| # which can block OIDC trusted publishing and surface as a misleading 404 on publish. | |
| - name: Upgrade npm (OIDC trusted publishing requires npm 11.5.1+) | |
| run: npm install -g npm@11 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Supply chain check | |
| run: pnpm run audit:supply-chain | |
| - name: pnpm audit (high severity and above) | |
| run: pnpm audit --audit-level=high | |
| - name: OSV vulnerability scan (lockfile) | |
| uses: google/osv-scanner-action/osv-scanner-action@v2.3.3 | |
| with: | |
| scan-args: |- | |
| --lockfile=pnpm-lock.yaml | |
| - name: Build | |
| run: pnpm run build | |
| - name: Lint (prepublish rules) | |
| run: pnpm exec eslint -c eslint.config.prepublish.mjs nodes credentials package.json | |
| - name: Publish to npm | |
| run: | | |
| npm --version | |
| npm publish --provenance --access public |