egg_tools/.gitea/workflows/release.yml
zhaoyingbo 09da59cff6
All checks were successful
/ release (push) Successful in 41s
ci(node-version): 修改node版本号
2024-08-21 01:11:51 +00:00

37 lines
895 B
YAML

on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 5
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Bump version and push tag
id: bump_version
run: |
git config --global user.name 'zhaoyingbo'
git config --global user.email 'zhaoyingbo@live.cn'
npx lerna version --yes
git push --follow-tags
- name: Publish packages
run: |
git update-index --assume-unchanged .npmrc
echo "//git.yingbo.im:333/api/packages/zhaoyingbo/npm/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
npx lerna publish from-package --yes