Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publish_react_component_library.yaml GitHub Actions workflow file #424

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

ty2k
Copy link
Contributor

@ty2k ty2k commented Jul 24, 2024

This PR adds a GitHub Actions workflow file that is designed to publish a new version of @bcgov/design-system-react-components on npm using the next tag and with a version that looks like:

<current version from package.json>-pr<number of the pull request that triggered the action>

So package.json version v1.2.3 with a build caused by PR # 456 would result in an npm version of 1.2.3-pr456 on the next tag (not the default latest tag that gives the canonical latest version of the package when a user installs with npm install).

The intent is that we are able to publish and test new versions of the library quickly with less manual action needed.

I have a secret NPM_TOKEN already added to this repo that this workflow will use. I'm not 100% sure how this will work with npm's MFA requirement that I bump up against every time I manually publish a new version, so we will have to test this if it gets merged.

@ty2k ty2k added the enhancement New feature or request label Jul 24, 2024
@ty2k ty2k added this to the Components v0.2.0 milestone Jul 24, 2024
@ty2k ty2k requested a review from mkernohanbc July 24, 2024 22:46
@ty2k ty2k self-assigned this Jul 24, 2024
@ty2k ty2k merged commit d14f2a5 into main Jul 24, 2024
2 checks passed
@ty2k ty2k deleted the ci/publish-next-versions-to-npm branch July 24, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants