Add Github publish action #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish packages on NPM | ||
| 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 | ||