Merge pull request #651 from IceEnd/bugfix/648 #56
Workflow file for this run
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: npm publish | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
node-version: '14.x' | |
check-latest: true | |
registry-url: 'https://registry.npmjs.org' | |
- name: install | |
run: | | |
npm install -g [email protected] | |
pnpm i --filter "wujie-project" --filter "./packages/**" --no-frozen-lockfile | |
- name: publish to npm | |
run: | | |
./node_modules/.bin/lerna run prepack | |
./node_modules/.bin/lerna publish from-package --no-verify-access --ignore-scripts --create-release github -y | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |