docs: update readme #135
This file contains 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 | |
on: | |
push: | |
branches: | |
- "main" | |
workflow_dispatch: | |
jobs: | |
publish_npm: | |
name: Publish production NPM packages | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, 'chore: version packages')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Prepare repository | |
run: git checkout main | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "yarn" | |
- name: Install monorepo deps | |
run: yarn --frozen-lockfile | |
- name: Setup .npmrc | |
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish | |
run: yarn lerna publish from-package --yes |