工作流镜像修改&&添加发布插件条件限制
This commit is contained in:
@@ -11,7 +11,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gitea/runner-images:ubuntu-latest
|
||||
image: node:20-alpine
|
||||
steps:
|
||||
- name: 拉取代码
|
||||
uses: https://devstar.cn/actions/checkout@v4
|
||||
@@ -27,6 +27,7 @@ jobs:
|
||||
npm run package
|
||||
|
||||
- name: 发布插件
|
||||
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/main'
|
||||
run: |
|
||||
npm run publish
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user