Skip to content

Commit aacb4a9

Browse files
author
孙先富-技术研发
committed
更新.gitlab-ci.yml文件
1 parent 99b78a1 commit aacb4a9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.gitlab-ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
image: node:22
2+
stages:
3+
- deploy
4+
5+
deploy-job: # This job runs in the deploy stage.
6+
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
7+
script:
8+
- npm config set registry https://registry.npmmirror.com
9+
- npm install -g [email protected]
10+
- npm install -g @vscode/vsce
11+
- pnpm install
12+
- pnpm run build
13+
- ls ./
14+
artifacts:
15+
paths:
16+
- "*.vsix" # 所有 .vsix 文件(如 dist/extension.vsix)
17+
expire_in: 1 week # 产物保留 1 周(可选,默认 30 天)
18+
environment: production
19+
when: manual # 标记为手动作业

0 commit comments

Comments
 (0)