Open
Conversation
Uses the shared reusable publish workflow from braintree/web-sdk-github-actions to automate the release process: CI → version bump → npm publish (with provenance) → GitHub release. Adds UNRELEASED section to CHANGELOG.md for the version-bump action. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dependency ReviewThe following issues were found:
Scanned Files
|
There was a problem hiding this comment.
Pull request overview
Adds a manually triggered GitHub Actions workflow to publish this package to npm using a shared reusable workflow, and updates the changelog to support the version-bump step.
Changes:
- Added
## UNRELEASEDsection toCHANGELOG.mdfor automated version bumping. - Introduced
.github/workflows/publish.ymlto run aworkflow_dispatch-triggered publish pipeline viabraintree/web-sdk-github-actions.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| CHANGELOG.md | Adds an UNRELEASED section required by the version-bump automation. |
| .github/workflows/publish.yml | Adds a manual “Publish to npm” workflow that delegates to the shared publish reusable workflow and passes npm credentials/permissions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| jobs: | ||
| publish: | ||
| uses: braintree/web-sdk-github-actions/.github/workflows/publish.yml@main |
There was a problem hiding this comment.
The reusable workflow is referenced via @main, which makes releases non-reproducible and introduces supply-chain risk (the behavior can change without changes in this repo). Consider pinning to an immutable ref (a commit SHA or a version tag) similar to .github/workflows/ci.yml:17.
Suggested change
| uses: braintree/web-sdk-github-actions/.github/workflows/publish.yml@main | |
| uses: braintree/web-sdk-github-actions/.github/workflows/publish.yml@v1 |
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.
Summary
workflow_dispatch-triggered publish workflow that uses the shared reusable workflow frombraintree/web-sdk-github-actions## UNRELEASEDsection to CHANGELOG.md (required by the version-bump action)How it works
The thin
publish.ymlcalls the sharedbraintree/web-sdk-github-actions/.github/workflows/publish.ymlworkflow, which orchestrates:npm version, updates CHANGELOG (UNRELEASED → version + date), commits, tags, pushesnpm publish --provenanceusing org-levelBRAINTREE_NPM_ACCESS_TOKENTest plan
workflow_dispatchtrigger shows version_type dropdown (patch/minor/major)