Skip to content

publish

publish #3

Workflow file for this run

name: publish
# Controls when the workflow will run
on:
workflow_dispatch:
jobs:
publish:
if: github.ref == 'refs/heads/master

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

View workflow run for this annotation

GitHub Actions / publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 9, Col: 9): Unexpected symbol: ''refs/heads/master'. Located at position 15 within expression: github.ref == 'refs/heads/master
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Set up Git user
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
- name: "Setup npm" # Add our registry to npm config
run: | # Custom action
npm set "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}"
- name: Run lerna publish
run: npx lerna publish minor -y
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}