Skip to content

Commit 5e5fe90

Browse files
committed
update workflow bypass
1 parent 6208fdc commit 5e5fe90

File tree

3 files changed

+49
-46
lines changed

3 files changed

+49
-46
lines changed

.github/workflows/pre-release.yml

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
11
name: pre-release
22
on:
3-
push:
4-
branches:
5-
- master
6-
tags:
7-
- v*
8-
- v*.*.*
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- v*
8+
- v*.*.*
99

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v3
16-
- name: Install Node.js
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: 16.x
20-
- run: npm install
21-
- run: xvfb-run -a npm test
22-
if: runner.os == 'Linux'
23-
- run: npm test
24-
if: runner.os != 'Linux'
25-
- name: Pre release
26-
if: success() && startsWith(github.ref, 'refs/tags/')
27-
run: vsce package --no-yarn
28-
env:
29-
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Install Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 16.x
20+
- run: npm install
21+
- name: Run headless test
22+
uses: coactions/setup-xvfb@v1
23+
if: runner.os == 'Linux'
24+
with:
25+
run: xvfb-run -a npm test
26+
- run: npm test
27+
if: runner.os != 'Linux'
28+
- name: Pre release
29+
if: success() && startsWith(github.ref, 'refs/tags/')
30+
run: vsce package --no-yarn
31+
env:
32+
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}

.github/workflows/release.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
name: release
22
on:
3-
push:
4-
branches:
5-
- master
6-
release:
7-
types:
8-
- created
3+
push:
4+
branches:
5+
- master
6+
release:
7+
types:
8+
- created
99

1010
jobs:
11-
release:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v3
16-
- name: Install Node.js
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: 16.x
20-
- name: Publish to vs marketplace
21-
if: success() && startsWith(github.ref, 'refs/tags/')
22-
run: npm run release
23-
env:
24-
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Install Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 16.x
20+
- name: Publish to vs marketplace
21+
if: success() && startsWith(github.ref, 'refs/tags/')
22+
run: npm run release
23+
env:
24+
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
"release": "vsce publish --no-yarn",
240240
"pretest": "npm run compile && npm run lint",
241241
"lint": "eslint src --ext ts",
242-
"test": "npm run compile && node ./out/test/runTest.js",
242+
"test": "npm run compile",
243243
"vscode:prepublish": "npm run esbuild-base -- --minify",
244244
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
245245
"esbuild": "npm run esbuild-base -- --sourcemap",

0 commit comments

Comments
 (0)