Skip to content

gh action

gh action #2

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '21'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Publish to npm
run: |
npm version patch -m "Release version %s"
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}