Add preview publishing #10
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: Publish preview | |
on: | |
pull_request: | |
push: | |
branches: | |
- "master" | |
tags: | |
- "!**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Enable corepack | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm -r build | |
- name: Lint | |
run: pnpm run test:lint | |
- name: Test | |
run: pnpm run test:unit | |
- name: Publish | |
run: pnpx pkg-pr-new publish './packages/*' './plugins/*' --no-template --pnpm --compact |