Skip to content

fix action

fix action #61

Workflow file for this run

name: Publish DEV
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:

Check failure on line 10 in .github/workflows/publish-dev.yml

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 10
if: github.event.release.prereleased == true
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- run: |
npm install
npm run build
npm run test
publish:
needs: build
runs-on: ubuntu-latest
steps:
if: github.event.release.prereleased == true
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: |
npm install
npm run build
npm publish --access public --tag dev
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_TKN}}