Skip to content

Publish to npm

Publish to npm #1

Workflow file for this run

name: Publish package to npm
on:
release:
types: [created]
jobs:
publish-npm:

Check failure on line 8 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Publish package to npm

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 8, Col: 3): The workflow must contain at least one job with no dependencies.

Check failure on line 8 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Publish package to npm

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 8, Col: 3): The workflow must contain at least one job with no dependencies.
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: yarn build
- run: yarn npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}