Skip to content

Commit

Permalink
chore: update publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Dec 13, 2023
2 parents 658e763 + f938f2f commit 2b5bda0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/pubish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Build and Publish on Main Branch
on:
push:
branches:
- main
- chore/publish

jobs:
build-and-publish:
Expand All @@ -21,10 +21,12 @@ jobs:
- name: Install Dependencies
run: npm install

- name: Update Version
run: |
npm version patch -m "Upgrade to %s" # 可以使用 major、minor 或 patch
git push --follow-tags
# - name: Update Version
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Action"
# npm version patch -m "Upgrade to %s" # 可以使用 major、minor 或 patch
# git push --follow-tags

- name: Run Build
run: npm run build
Expand All @@ -33,4 +35,4 @@ jobs:
run: npm run pub
env:
# 设置环境变量,如需要的 API 密钥、令牌等
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-demo",
"version": "1.2.10",
"version": "1.2.12",
"description": "Low-Code Engine 低代码搭建引擎 Demo 项目",
"repository": "[email protected]:alibaba/lowcode-demo.git",
"license": "MIT",
Expand Down

0 comments on commit 2b5bda0

Please sign in to comment.