Skip to content

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Publish PNPM Package to NPM
on:
release:
types: [created]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: 8
run_install: false
- uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test
publish:
needs: build

Check failure on line 27 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Publish PNPM Package to NPM

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 27, Col: 12): Job 'publish' depends on unknown job 'build'.

Check failure on line 27 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Publish PNPM Package to NPM

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 27, Col: 12): Job 'publish' depends on unknown job 'build'.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: 8
run_install: false
- uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
registry-url: https://registry.npmjs.org
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH}}