Skip to content

fix: change tags filter (#44) #14

fix: change tags filter (#44)

fix: change tags filter (#44) #14

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- **

Check failure on line 6 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 6
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: "main" # Replace with your branch name
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Install dependencies
run: yarn --immutable
- name: Set up .npmrc file
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish to npm
run: npx lerna publish from-package --no-private --yes
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}