ci: 更新部署秘钥
This commit is contained in:
parent
2ad41355a9
commit
6d17e46d3b
35
.gitea/release.yml
Normal file
35
.gitea/release.yml
Normal file
@ -0,0 +1,35 @@
|
||||
name: Release
|
||||
|
||||
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: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
1
.npmrc
Normal file
1
.npmrc
Normal file
@ -0,0 +1 @@
|
||||
@egg:registry=https://git.yingbo.im:333/api/packages/zhaoyingbo/npm/
|
3257
package-lock.json
generated
Normal file
3257
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "egg-tools",
|
||||
"name": "@egg/tools",
|
||||
"version": "1.0.0",
|
||||
"description": "Tools for Egg projects, including netTool and logger",
|
||||
"type": "module",
|
||||
|
Loading…
x
Reference in New Issue
Block a user