Skip to content

chore: add release flow #1

chore: add release flow

chore: add release flow #1

name: Node.js Package
on:
push:
branches: [main]
jobs:
publish-gpr:

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

View workflow run for this annotation

GitHub Actions / Node.js Package

Invalid workflow file

The workflow is not valid. .github/workflows/release-package.yml (Line: 8, Col: 3): The workflow must contain at least one job with no dependencies.
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}