Skip to content

move to OIDC for npm publish - #36

Merged
smellman merged 1 commit into
mainfrom
dev/issue-35
Apr 17, 2026
Merged

move to OIDC for npm publish#36
smellman merged 1 commit into
mainfrom
dev/issue-35

Conversation

@smellman

@smellman smellman commented Apr 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • v* タグのpush時にnpmへ公開する publish.yml ワークフローを追加(OIDC provenance対応)
  • package.jsonrepository フィールドを追加(provenance生成に必要)
  • build.ymlnpm installnpm ci に変更し、不要な NODE_AUTH_TOKEN を削除

closes #35

Test plan

  • npmjs.orgでパッケージのpublishing accessをGitHub Actionsに許可
  • v* タグをpushしてワークフローが正常に動作することを確認

- add publish.yml triggered by v* tags with provenance support
- add repository field to package.json for provenance
- switch build.yml to npm ci

closes #35

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.

Pull request overview

Adds an OIDC-based npm publishing workflow on version tag pushes, enabling npm provenance and aligning CI installs with lockfile-based reproducibility.

Changes:

  • Add .github/workflows/publish.yml to publish to npm on v* tags using OIDC (id-token: write) and npm publish --provenance.
  • Add repository metadata to package.json (required for provenance generation).
  • Update CI install step in build.yml from npm install to npm ci and remove the unused NODE_AUTH_TOKEN.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
package.json Adds repository metadata needed for npm provenance.
.github/workflows/publish.yml New tag-triggered npm publish workflow using OIDC + provenance.
.github/workflows/build.yml Switches dependency installation to npm ci for reproducible CI builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yuiseki yuiseki left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@smellman
smellman merged commit 5ba7b51 into main Apr 17, 2026
10 checks passed
@smellman
smellman deleted the dev/issue-35 branch April 17, 2026 02:15
@hfu

hfu commented Apr 17, 2026

Copy link
Copy Markdown
Member

LGTM and thank you for updating.

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.

move to OIDC

4 participants