Skip to content

Add GHA docker build caching support #21

Add GHA docker build caching support

Add GHA docker build caching support #21

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm build
- name: Dry run publish
run: pnpm -r publish --dry-run
- uses: actions/upload-artifact@v4
with:
name: dists
path: ./**/dist/*