Skip to content

chore: release 0.2.0 with npm trusted publishing - #2

Merged
alexstep merged 1 commit into
mainfrom
cursor/release-0-2-0-591d
Oct 7, 2026
Merged

alexstep merged 1 commit into
mainfrom
cursor/release-0-2-0-591d

Conversation

@alexstep

@alexstep alexstep commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Summary

Prepares 0.2.0 and switches tag publishing to npm Trusted Publishing (OIDC). Nothing was published, no tag or GitHub release was created, and main was not pushed.

  • package.json, Cargo.toml, Cargo.lock, and the version checks in index.js are 0.2.0.
  • Platform packages under npm/ are generated, not committed (.gitignore). napi create-npm-dirs / napi version write 0.2.0 into all 12 of them. The publish job checks that before npm publish.
  • .github/workflows/release.yml publish job: permissions: id-token: write and contents: read, Node 24, registry-url: https://registry.npmjs.org, npm install -g npm@11 with a hard fail below 11.5.1. No NPM_TOKEN or NODE_AUTH_TOKEN.
  • prepublishOnly still runs napi prepublish, which shells out to npm publish in each npm/<platform> directory with the job environment. npm uses OIDC before any token, so those publishes do not need a token or .npmrc auth.
  • A v* tag that does not match package.json fails in check-version before the prebuild matrix, and again at the start of the publish job.
  • No GitHub environment is set on the job. On npmjs.com leave Environment name blank.
  • Workflow filename to configure: release.yml.
  • Trusted publishers created after 2026-09-03 default to npm stage publish only. Enable direct npm publish for this workflow.

Packages that already exist on npm (0.1.5)

Trusted Publishing can be configured for all of these. None would be a first publish.

  • @alexstep/doc-extract
  • @alexstep/doc-extract-win32-x64-msvc
  • @alexstep/doc-extract-win32-ia32-msvc
  • @alexstep/doc-extract-win32-arm64-msvc
  • @alexstep/doc-extract-darwin-x64
  • @alexstep/doc-extract-darwin-arm64
  • @alexstep/doc-extract-linux-x64-gnu
  • @alexstep/doc-extract-linux-x64-musl
  • @alexstep/doc-extract-linux-arm64-gnu
  • @alexstep/doc-extract-linux-arm64-musl
  • @alexstep/doc-extract-linux-arm-gnueabihf
  • @alexstep/doc-extract-freebsd-x64
  • @alexstep/doc-extract-wasm32-wasi

Not done

  • No npm publish, no v0.2.0 tag, no GitHub release.
  • The OIDC exchange itself was not executed; it only runs on a tag push from GitHub-hosted runners after the publishers above are saved on npmjs.com.
Open in Web Open in Cursor 

Bump the package, crate, and loader to 0.2.0 and publish v* tags with
OIDC instead of an NPM_TOKEN.

Co-authored-by: kellas <alex.step.kellas@gmail.com>
@alexstep
alexstep marked this pull request as ready for review October 7, 2026 23:23
@alexstep
alexstep merged commit 2838ad6 into main Oct 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants