-
Notifications
You must be signed in to change notification settings - Fork 176
use pkg.pr.new
to publish PR prereleases
#536
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
name: Pre-release | ||
|
||
on: workflow_dispatch | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- packages/open-next/** | ||
|
||
jobs: | ||
release: | ||
|
@@ -21,10 +26,8 @@ jobs: | |
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Check codestyle | ||
run: pnpm lint | ||
- name: Build package | ||
run: pnpm -F @opennextjs/aws build | ||
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. this could be 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. Probably related to the comment i left below about pnpm |
||
|
||
- name: Publish Pre-release to npm | ||
run: pnpm release-snapshot | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Publish prerelease | ||
run: pnpm exec pkg-pr-new publish --pnpm --compact './packages/open-next' |
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.
We probably want to filter to run this only on change on the
packages/open-next
folder itself.Really not a big deal but change made to e2e would trigger this which is not really useful
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.
good point! 👍