Skip to content

Add Github publish action #1

Add Github publish action

Add Github publish action #1

Workflow file for this run

name: Publish packages on NPM

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

(Line: 5, Col: 3): Unexpected value 'on'
on:
# release:
# types: [created]
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: yarn config set npmAuthToken $NPM_PUBLISH_TOKEN
env:
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- run: yarn
- run: yarn run lerna publish from-package