Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenxuan committed Feb 2, 2025
1 parent 8988fd5 commit e1eca62
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 44 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build_and_test.yml

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/creage-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,6 @@ jobs:

# 定义任务中的各个步骤
steps:
# 步骤:使用 Google 的 release-please-action 动作
- name: Create Release
uses: google-github-actions/release-please-action@v3
# 为这个步骤指定一个标识符,方便后续引用
id: release-please
with:
# 指定发布类型为 Node.js 项目
release-type: node
# 指定要发布的包名
package-name: '@ikenxuan/amagi'
# 指定默认分支名称
default-branch: main

# 步骤:检出代码
- name: Checkout code
# 条件判断:仅当 release-please 步骤创建了发布时才执行此步骤
Expand All @@ -54,6 +41,19 @@ jobs:
npm install
npm run build
# 步骤:使用 Google 的 release-please-action 动作
- name: Create Release
uses: google-github-actions/release-please-action@v3
# 为这个步骤指定一个标识符,方便后续引用
id: release-please
with:
# 指定发布类型为 Node.js 项目
release-type: node
# 指定要发布的包名
package-name: '@ikenxuan/amagi'
# 指定默认分支名称
default-branch: main

# 步骤:获取版本号
- name: Get version
if: steps.release-please.outputs.release_created == 'true'
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
"pr": "node ci/pr.js",
"pub": "npm publish --access public",
"pub-beta": "npm publish --tag beta",
"sort": "npx sort-package-json",
"test": "node lib/test.js"
"sort": "npx sort-package-json"
},
"dependencies": {
"axios": "^1.7.9",
Expand Down

0 comments on commit e1eca62

Please sign in to comment.