Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 0d78f3b

Browse files
authored
Skip entire publish job (#34)
1 parent 1a263a3 commit 0d78f3b

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/ci.yaml

+6-11
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ jobs:
1616
os: [macos-latest, ubuntu-latest, windows-latest]
1717
runs-on: ${{ matrix.os }}
1818
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v4
21-
- name: Install Node.js
22-
uses: actions/setup-node@v4
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
2321
with:
2422
node-version: 16.x
2523
- run: npm install
@@ -29,21 +27,18 @@ jobs:
2927
if: runner.os != 'Linux'
3028

3129
publish:
30+
if: startsWith(github.ref, 'refs/tags/')
3231
needs: test
3332
environment:
3433
name: Visual Studio Marketplace
3534
url: https://marketplace.visualstudio.com/items?itemName=carlthome.git-line-blame
3635
runs-on: ubuntu-latest
3736
steps:
38-
- name: Checkout
39-
uses: actions/checkout@v4
40-
- name: Install Node.js
41-
uses: actions/setup-node@v4
37+
- uses: actions/checkout@v4
38+
- uses: actions/setup-node@v4
4239
with:
4340
node-version: 16.x
4441
- run: npm install
45-
- name: Publish
46-
if: startsWith(github.ref, 'refs/tags/')
47-
run: npm run deploy
42+
- run: npm run deploy
4843
env:
4944
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)