ci: fix config git with bot info (#4) #3
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: Lerna version & publish | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Configure Git | |
run: | | |
git config --global user.name "$CI_BOT_NAME" | |
git config --global user.email "$CI_BOT_EMAIL" | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org/' | |
- run: npm install | |
- run: npm run lint | |
- run: npm run test | |
- run: npm run build | |
- run: npm run lerna version | |
- run: npm run lerna publish from-package | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |