提交 3a06fdf7 编写于 作者: T Tomas Vik

Resolve "Publish GitLab Workflow extension to Open VSX Registry"

上级 3fcbdf54
...@@ -7,6 +7,7 @@ image: node:12-slim ...@@ -7,6 +7,7 @@ image: node:12-slim
stages: stages:
- test - test
- package
- publish - publish
lint: lint:
...@@ -27,13 +28,32 @@ test-integration: ...@@ -27,13 +28,32 @@ test-integration:
- /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & - /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- npm test - npm test
publish: package:
stage: publish stage: package
script: script:
- npm ci - npm ci
- cd src/webview && npm install && npm run build && cd ../.. # build webview - cd src/webview && npm install && npm run build && cd ../.. # build webview
- npm install -g vsce - npx vsce package
- vsce publish -p $AZURE_ACCESS_TOKEN artifacts:
paths:
- '*.vsix'
expire_in: 1 year
only:
- tags
publish_marketplace:
stage: publish
script:
- npx vsce publish *.vsix -p $AZURE_ACCESS_TOKEN
when: manual when: manual
only: only:
- tags - tags
publish_open_vsx:
stage: publish
script:
- npx ovsx publish *.vsix -p $OPENVSX_ACCESS_TOKEN
when: manual
only:
- tags
...@@ -46,6 +46,8 @@ Supports [multi-root workspaces](https://code.visualstudio.com/docs/editor/multi ...@@ -46,6 +46,8 @@ Supports [multi-root workspaces](https://code.visualstudio.com/docs/editor/multi
Supports multiple GitLab instances [Read more](#multiple-gitlab-instances). Supports multiple GitLab instances [Read more](#multiple-gitlab-instances).
Published also on [Open VSX Registry](https://open-vsx.org/extension/GitLab/gitlab-workflow).
### Experimental Features ### Experimental Features
Experimental features are behind a feature flag. To enable them, you can set `gitlab.enableExperimentalFeatures` to `true` in your VS Code settings. Experimental features are behind a feature flag. To enable them, you can set `gitlab.enableExperimentalFeatures` to `true` in your VS Code settings.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册