Skip to content

Commit 45591a3

Browse files
committed
perf(ci): improve CI scripts
1 parent 648c470 commit 45591a3

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/vscodepublish.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,31 @@ on:
33
push:
44
tags:
55
- v*
6+
env:
7+
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
8+
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
9+
610
jobs:
711
npmInstall:
8-
name: npm install
12+
name: Tests
913
runs-on: ubuntu-latest
10-
env:
11-
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
1214
steps:
1315
- uses: actions/checkout@v2
1416
- uses: actions/setup-node@v1
1517
with:
1618
node-version: "10.x"
17-
- run: npm install -g vsce github-release-from-changelog
18-
- run: yarn install
19+
- run: yarn
1920
- run: yarn lint
2021
- run: yarn compile
21-
- run: vsce publish -p ${{ secrets.PUBLISHER_TOKEN }}
22-
- run: github-release-from-changelog
22+
- run: npx github-release-from-changelog
23+
24+
vscPublish:
25+
name: Release Extension
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: actions/setup-node@v1
30+
with:
31+
node-version: "10.x"
32+
- run: yarn
33+
- run: npx vsce publish

0 commit comments

Comments
 (0)