-
-
Notifications
You must be signed in to change notification settings - Fork 833
Call CI workflow before publish attempt #2016
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
base: next
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,10 +43,16 @@ jobs: | |
| with: | ||
| version: pnpm version-packages | ||
|
|
||
| publish: | ||
| name: Publish | ||
| ci: | ||
| if: needs.version.outputs.hasChangesets == 'false' | ||
| needs: version | ||
| permissions: | ||
| contents: read | ||
| uses: ./.github/workflows/ci.yml | ||
|
|
||
| publish: | ||
| name: Publish | ||
| needs: ci | ||
|
Comment on lines
+46
to
+55
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we set up like this instead? https://stackoverflow.com/a/64733705 Otherwise
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this would work because we rely on
Good point about concurrency - I don't quite know how that would work in this special mode. This needs testing. I'm fine with the CI workflow executing more than once in those scenarios though because it would only happen pre-publish (but not pre-version)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we'll have to figure out the concurrency issue. I also think this will trigger often than not though because we execute when there's no changesets, not only before publish. If we can get both sorted out I'm ok with doing this. |
||
| runs-on: ubuntu-latest | ||
| environment: npm | ||
| timeout-minutes: 20 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.