Skip to content

Commit ed077b7

Browse files
authored
Merge pull request #3086 from matklad/auto-publish-extension
Publish VS Code extension automatically
2 parents f55d74d + 27ddb12 commit ed077b7

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/release.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,17 @@ jobs:
106106
runs-on: ubuntu-latest
107107
needs: ['build-server', 'build-clients']
108108
steps:
109+
- name: Install Nodejs
110+
uses: actions/setup-node@v1
111+
with:
112+
node-version: 12.x
113+
114+
- run: echo "::set-env name=TAG::$(date --iso)"
115+
- run: 'echo "TAG: $TAG"'
116+
117+
- name: Checkout repository
118+
uses: actions/checkout@v1
119+
109120
- uses: actions/download-artifact@v1
110121
with:
111122
name: editor-plugins
@@ -124,9 +135,6 @@ jobs:
124135
path: dist
125136
- run: ls -all ./dist
126137

127-
- run: echo "::set-env name=TAG::$(date --iso)"
128-
- run: 'echo "TAG: $TAG"'
129-
130138
- name: Create Release
131139
id: create_release
132140
# uses: actions/create-release@v1
@@ -184,3 +192,11 @@ jobs:
184192
asset_path: ./dist/rust-analyzer.el
185193
asset_name: rust-analyzer.el
186194
asset_content_type: text/plain
195+
196+
- run: npm ci
197+
working-directory: ./editors/code
198+
199+
- name: Publish Extension
200+
working-directory: ./editors/code
201+
# token from https://dev.azure.com/rust-analyzer/
202+
run: ./node_modules/vsce/out/vsce publish 0.1.0.$(date +%Y%m%d) --pat ${{ secrets.MARKETPLACE_TOKEN }}

0 commit comments

Comments
 (0)