refactor: only try to purge the cache when invalidation is configured #2160
Workflow file for this run
This file contains hidden or 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: Publish prereleases | |
on: | |
push: | |
branches: [main, experimental] | |
pull_request: | |
jobs: | |
release: | |
if: ${{ github.repository_owner == 'opennextjs' }} | |
name: Publish builder package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Build | |
run: pnpm -F cloudflare run build | |
- name: Publish to NPM | |
run: pnpm exec pkg-pr-new publish --pnpm --compact './packages/cloudflare' |