Skip to content

Commit b1c4139

Browse files
Merge pull request #42 from codecov/spalmurray/test-publish-workflow
Create publish workflow
2 parents d209d0f + cda5485 commit b1c4139

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.github/workflows/publish.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish extension
2+
on:
3+
release:
4+
types: [published]
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Install Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Create Docker image for json schema generation
24+
run: make build
25+
26+
- name: Generate json schema
27+
run: make run
28+
29+
- name: Build extension
30+
run: npm run build
31+
32+
- name: Install vsce
33+
run: npm install -g @vscode/vsce
34+
35+
- name: Publish extension
36+
run: vsce publish --no-update-package-json "$VSCE_VERSION"
37+
env:
38+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
39+
VSCE_VERSION: ${{ github.event.release.tag_name }}

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ build:
33
run:
44
docker rm user-schema || true
55
docker run --name user-schema convert-user-schema python script.py
6+
mkdir -p schemas
67
docker cp user-schema:/app/codecov.json ./schemas/codecov.json

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"bugs": {
1414
"url": "https://github.com/codecov/vscode/issues"
1515
},
16-
"version": "0.0.6",
16+
"version": "0.0.0",
1717
"repository": "https://github.com/codecov/vscode",
1818
"engines": {
1919
"vscode": "^1.85.0"

0 commit comments

Comments
 (0)