Repository navigation
ci: npmのTrusted Publishingワークフローを追加 - #2
Merged
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b034aa4. Configure here.
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.

概要
初回リリースに向けて、npm公開用のGitHub Actionsを追加します。
初回リリース手順の公開ワークフロー追加に対応します。
構成はJS SDKのrelease.ymlを参考にしています。
変更内容
.github/workflows/publish.ymlを追加v*タグのpushで起動package.jsonのバージョン一致、対象コミットがmainに含まれることを検査latestとして公開id-token: writeは公開ジョブのみに付与0.0.0とプレリリース版の公開は拒否package.jsonに正式なrepository.urlを追加DEVELOPMENT.mdに公開ワークフローと初回公開手順を記載確認
npm run lintnpm run formatnpm run test:coverage:134件成功、カバレッジ下限達成npm run test:typesnpm run test:package0.0.0・プレリリース版を拒否公開までの残作業
このPRのマージではnpm公開は実行されません。バージョンも初期登録用の
0.0.0を維持しています。npm publish --tag bootstrapを実行して初期登録microcmsio/microcms-ts-typegenのpublish.ymlを登録し、npm publishを許可(Environmentは空欄)1.0.0への変更PRをマージし、CI成功後にv1.0.0タグを作成・pushTrusted Publishingの公式仕様に従い、npmトークンは使用しません。