Skip to content

ci/cd: use pnpm/action-setup@v3 #12

ci/cd: use pnpm/action-setup@v3

ci/cd: use pnpm/action-setup@v3 #12

Workflow file for this run

name: CI
on:
push:
branches:
- main
- dev
workflow_dispatch:
jobs:
unittests:
name: Run unittests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: pnpm/action-setup@v3
with:
version: ^8.14.2
run_install: true
- env:
TEST_ADDON_GUID: ${{ secrets.TEST_ADDON_GUID }}
TEST_JWT_ISSUER: ${{ secrets.TEST_JWT_ISSUER }}
TEST_JWT_SECRET: ${{ secrets.TEST_JWT_SECRET }}
run: pnpm test
publish:
name: Publish action
needs: unittests
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: wdzeng/action-of-action@v3