Skip to content

chore: use pnpm@9 & use node >= 22 & update actions #62

chore: use pnpm@9 & use node >= 22 & update actions

chore: use pnpm@9 & use node >= 22 & update actions #62

name: publish-sandbox
on:
push:
branches:
- main
jobs:
publish-sandbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: pnpm/[email protected]
with:
version: 9.15.3
- uses: actions/cache@v4
id: pnpm-cache
with:
path: |
**/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install
- run: pnpm run build
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/sandbox/dist