Skip to content

Add ci yml

Add ci yml #1

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
publish:
name: "Publish to npm registry"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.17.0'
- run: |
npm ci

Check failure on line 18 in .github/workflows/publish.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yaml

Invalid workflow file

You have an error in your yaml syntax on line 18
npm test
- uses: JS-DevTools/npm-publish@4b07b26a2f6e0a51846e1870223e545bae91c552
if: github.event_name == 'release'
with:
token: ${{ secrets.NPM_PUBLISH_FOR_PUBLIC_REPO }}
registry: "https://registry.npmjs.org"