refactor: code cleanup #335
Workflow file for this run
This file contains 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
name: Pre-release | |
on: | |
pull_request: | |
branches: [main, experimental] | |
paths: | |
- packages/open-next/** | |
push: | |
branches: [main, experimental] | |
paths: | |
- packages/open-next/** | |
jobs: | |
release: | |
name: Pre-release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
# https://github.com/actions/checkout | |
uses: actions/checkout@v4 | |
# Setup .npmrc file to publish to npm | |
- uses: actions/setup-node@v4 | |
with: | |
registry-url: "https://registry.npmjs.org" | |
- uses: ./.github/actions/pnpm-setup | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build package | |
run: pnpm -F @opennextjs/aws build | |
- name: Publish prerelease | |
run: pnpm exec pkg-pr-new publish --pnpm --compact './packages/open-next' |