Skip to content

fix: github action

fix: github action #7

Workflow file for this run

name: Publish Project
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Configure git user and email
run: |
git config --global user.name "jinzelin"
git config --global user.email "[email protected]"
- name: Install Dependencies
run: |
npm install yarn -g
yarn
- name: Publish to NPM
run: |
yarn build
npx lerna publish -y
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}