Repository navigation
ci: upgrade npm publish action to v7 - #35
Merged
Merged
Conversation
matallui
approved these changes
Oct 28, 2026
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.
Description
Problem
The release workflow uses v6 for dry-run and production publishing. V7 sanitizes Yarn configuration and removes publish lifecycle hooks before packing.
Changes
@v6to@v7.SKIP_PREPACK: truefrom both steps. V7 removes theprepackhook before packing.flowchart TD A[Build dist] --> B[Upload release artifacts] B --> C[Restore artifacts for dry run] C --> D[Publish action v7 dry run] D --> E[Restore artifacts for production] E --> F[Publish action v7] classDef new fill:#fff3cd,stroke:#d39e00 class D,F newYellow boxes are new.
What changes
action-npm-publish@v6action-npm-publish@v7SKIP_PREPACKDecisions for reviewers
v7major tagprepack; restoreddistmust already contain the package output.V7 compatibility
packageManagerselects Yarn4.16.0, meeting the action's minimum requirement..yarnrc.ymlalready usesnodeLinker: node-modules.publishConfig.registrytargetshttps://registry.npmjs.org/, accepted by v7's registry check.distand uploads it withnode_modules/.yarn-state.yml. Both publish jobs restore those artifacts.YARN_*overrides.Review guide
Read
.github/workflows/publish-release.yml. Check both action references, the removed environment blocks, and artifact restoration before each publish.Validation
yarn install --immutablepasses with Node24.22.1and Yarn4.16.0.actionlint1.7.12passes for all workflows. The downloaded release archive matches its published checksum.yarn oxfmt --check .github/workflows/publish-release.ymlpasses.yarn buildpasses.git diff --checkpasses.Live publishing runs only through the release workflow; local validation does not exercise npm OIDC or staged publishing.
References
Checklist