Skip to content

Add auto-publish on push to release branch #13

Add auto-publish on push to release branch

Add auto-publish on push to release branch #13

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- '*'
env:
FORCE_COLOR: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore cache
uses: actions/cache@v4
with:
path: ~/.local/share/pnpm/store/v3
key: cache-pnpm-${{ hashFiles('./pnpm-lock.yaml') }}
restore-keys: cache-pnpm-
- name: Install dependencies
run: corepack enable pnpm && pnpm i
- name: Run tests
run: pnpm test