Repository navigation
Add GitHub Actions CI and npm Publish Workflows - #1
Merged
Merged
Conversation
arbianst
approved these changes
Oct 20, 2026
arbianst
left a comment
Contributor
There was a problem hiding this comment.
CI green on Node 22 and 24, publish flow matches n8n-nodes-sent, NPM_TOKEN bootstrap secret is in place.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add GitHub Actions CI and npm Publish Workflows
Changes / Fixes / Features included
.github/workflows/ci.yml): runs on pull requests, pushes tomainand manual dispatch, on Node 22 (theenginesfloor) and Node 24 (the README's recommendation). Steps:npm ci,npm run check:generated, lint, tests,npm audit --omit=dev --audit-level=moderateon the shipped dependency tree only,npm pack --dry-run, and two greps that fail the run if a force-added local artifact is tracked or a risky construct (child_process,eval(, TLS verification disabled) appears in shipped sources..github/workflows/publish.yml): triggered by a bare version tag (0.1.0, notv0.1.0), mirroringsentdm/n8n-nodes-sent. It checks the tag equals the version inpackage.jsonand that the version is not already on npm, reruns every CI gate on the tagged commit (there is no build step, so the checkout is the artifact), publishes with npm provenance and public access, then waits for the npm packument to list the version and prints the provenance attestation as release evidence.NPM_TOKENrepository secret. Once0.1.0is live, the Trusted Publisher is configured on npm, the secret is deleted and the token revoked; later releases authenticate through the job's OIDC token with no secret at all. The handover and the release procedure are documented in the workflow header.actions/checkoutv7.0.1,actions/setup-nodev7.1.0). The publish job installs npm 11.21.1 because Node 22 bundles npm 10, which cannot do Trusted Publishing.registry-urlis deliberately not set onsetup-node; it writes a placeholder auth token that stops npm from attempting OIDC, which is what broke the first OIDC release of the n8n package..gitignore: allowlist entries for the two workflow files. The file is a/*allowlist, so without them the workflows are ignored.No runtime, editor or package contents change.
npm pack --dry-runstill lists the same 13 files.How to test?
npm ci npm run check:generated npm run lint npm test npm audit --omit=dev --audit-level=moderate npm pack --dry-run