Skip to content

ci: publish 1.1.0 to npm with GitHub OIDC - #5

Merged
Naandalist merged 2 commits into
mainfrom
feat/oidc-npm-publish
Sep 9, 2026
Merged

Naandalist merged 2 commits into
mainfrom
feat/oidc-npm-publish

Conversation

@Naandalist

Copy link
Copy Markdown
Owner

No NPM_TOKEN. Publish uses npm trusted publishing + GitHub OIDC.

Repo change

New workflow: .github/workflows/publish.yml

  • trigger: v* tags (or manual dispatch)
  • permissions.id-token: write
  • yarn test / typecheck / build
  • npm publish --access public (provenance is automatic with trusted publishing)

Docs: docs/PUBLISH.md

You must do this on npmjs.com before the tag will work

  1. https://www.npmjs.com/package/react-native-nfc-card-scanner/access
  2. Trusted Publisher → GitHub Actions
  3. Exact values:
    • User: Naandalist
    • Repository: react-native-nfc-card-scanner
    • Workflow filename: publish.yml
    • Environment: empty
  4. Allow npm publish. New connections after 3 Sep 2026 only allow npm stage publish unless you tick direct publish.

After this PR is merged

git checkout main && git pull
git tag v1.1.0
git push origin v1.1.0

That starts the Publish workflow. Confirm at https://www.npmjs.com/package/react-native-nfc-card-scanner (1.1.0).

Copilot AI lite review requested due to automatic review settings September 9, 2026 23:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Naandalist
Naandalist merged commit 3f669a1 into main Sep 9, 2026
2 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