-
Notifications
You must be signed in to change notification settings - Fork 24
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
feature: Release NPM for PR #207
Conversation
.github/workflows/release-github.yml
Outdated
@@ -69,18 +70,25 @@ jobs: | |||
run: npx semantic-release --dry-run | |||
- name: Build artifacts for PRs | |||
if: github.event_name == 'pull_request' | |||
run: npm run dist | |||
run: | | |||
npm version prerelease --preid pr207 --workspaces --git-tag-version false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need this twice now, --include-workspace-root fixes that
echo "RELEASE_CHANNEL=$(node ./src/js/version.mjs channel $NPM_DIST_TAG)" >> $GITHUB_ENV | ||
- name: Override release channel for PRs | ||
if: github.event_name == 'pull_request' | ||
echo "NPM_DIST_TAG=test" >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this set the npm release channel to test
?
🎉 This PR is included in version 1.1.0-next.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.