Skip to content

build: Split publish release to npm to separate workflow. #1

build: Split publish release to npm to separate workflow.

build: Split publish release to npm to separate workflow. #1

name: Publish Release To NPM
on:
release:
types: [published]
jobs:
publish-release-to-npm:

Check failure on line 7 in .github/workflows/publish-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-release.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- run: yarn install --immutable
- run: yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- run: yarn npm publish
if: ${{ steps.release.outputs.release_created }}