Merge pull request #6 from lexmin0412/f-20240429-init-command #43
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: release new version | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- run: git config --global user.email ${{secrets.USER_EMAIL}} | |
- run: git config --global user.name ${{secrets.USER_NAME}} | |
- run: npm install pnpm@8 -g | |
- run: pnpm install | |
- run: pnpm build | |
- name: Publish with Lerna | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | |
GH_TOKEN: ${{secrets.COMMIT_TOKEN}} | |
run: | | |
pnpm ci:version | |
pnpm ci:publish |