Skip to content

feat: set up git action #1

feat: set up git action

feat: set up git action #1

name: Publish pnpm-sync Package
on:
push:
branches:
- main
- 'chao/**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: pnpm --filter pnpm-sync run build
- run: pnpm --filter pnpm-sync run test
publish-npm:
needs: build

Check failure on line 21 in .github/workflows/publish-pnpm-sync-package.yml

View workflow run for this annotation

GitHub Actions / Publish pnpm-sync Package

Invalid workflow file

The workflow is not valid. .github/workflows/publish-pnpm-sync-package.yml (Line: 21, Col: 12): Job 'publish-npm' depends on unknown job 'build'.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: pnpm --filter pnpm-sync publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}