feat: set up git action #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Publish pnpm-sync PackageInvalid workflow file
|
||
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}} |