egg_tools/.gitea/workflows/release.yml
zhaoyingbo 92df87687f
All checks were successful
/ release (push) Successful in 20s
ci: 修改部署检证步骤
2024-08-18 18:58:50 +08:00

33 lines
756 B
YAML

on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- 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'
npm version patch -m "chore(release): %s"
git push --follow-tags
- name: Publish package
run: |
echo "//git.yingbo.im:333/api/packages/zhaoyingbo/npm/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
npm publish