ci: support npm authenticated publishing#86
Draft
nahiyankhan wants to merge 1 commit into
Draft
Conversation
| - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0 | ||
|
|
||
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | ||
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.0.0 |
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.
🤖 This PR updates the Release workflow so
@anarchitecture/ghostcan publish through either repo-provided npm credentials or npm Trusted Publishing.Changes:
actions/setup-nodeto v6 and uses Node 24 for a modern npm CLI.npm publish ./packages/ghost --access public --provenanceso npm OIDC/trusted publishing can work.NPM_PUBLISH_TOKENor the conventionalNPM_TOKENGitHub Actions secret.NODE_AUTH_TOKENenv because Changesets writes npm auth fromNPM_TOKENwhen a token is present.Local verification:
pnpm checkpnpm buildpnpm testvia pre-push, 479 tests passingnpm_config_cache=/private/tmp/ghost-npm-cache npm pack ./packages/ghost --dry-run --ignore-scriptsRemaining setup before merging the release PR:
NPM_PUBLISH_TOKENorNPM_TOKENcontaining an npm publish token for@anarchitecture/ghost; or@anarchitecture/ghostwith ownerblock, repositoryghost, workflowRelease, and branchmain.