Skip to content

Use pnpm 9

Use pnpm 9 #8

name: Test and Release
on:
push:
branches: ["**"]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
test-and-release:
name: Test and Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.18
cache: pnpm
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm dev:prepare && pnpm prepack
- name: Test
run: pnpm test
- name: Create Release Pull Request or Publish to npm
if: ${{ github.ref == 'refs/heads/master' }}
uses: changesets/action@v1
with:
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}