update publish action #6
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: CI | |
on: [push] | |
jobs: | |
build: | |
name: Build, lint, and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Use Node 19.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "19.x" | |
- name: Install deps | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Bump Package Versions | |
run: npx lerna version --conventional-commits --yes | |
- name: Push changes | |
run: | | |
git push origin main | |
git push --tags | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Packages | |
run: | | |
npx lerna publish from-package --yes | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |