Skip to content

Publish Package to NPM #1

Publish Package to NPM

Publish Package to NPM #1

Workflow file for this run

name: Publish Package to NPM
on:
release:
types: [published]
jobs:
publish:

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

View workflow run for this annotation

GitHub Actions / Publish Package to NPM

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 8, Col: 3): The workflow must contain at least one job with no dependencies.
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- run: yarn
- run: yarn build
- uses: JS-DevTools/npm-publish@v3
id: publish
with:
token: ${{ secrets.NPM_TOKEN }}
- if: ${{ steps.publish.outputs.type }}
run: echo "$PCKG_ID published to $PCKG_TAG, old version was [$OLD_VER]"
env:
OLD_VER: ${{ steps.publish.outputs.old-version }}
PCKG_ID: ${{ steps.publish.outputs.id }}
PCKG_TAG: ${{ steps.publish.outputs.tag }}