fix: toast.show #56
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 Project | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- 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 | |
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" | |
npx lerna publish -y | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: build Doc | |
run: yarn doc:build | |
- name: Publish Doc | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: docs | |
FOLDER: docs | |
CLEAN: true |