Skip to content

Commit d962833

Browse files
committed
ci: release script
1 parent 6d5228a commit d962833

File tree

3 files changed

+45
-15
lines changed

3 files changed

+45
-15
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
on: [push, pull_request]
22

33
jobs:
4-
build:
5-
strategy:
6-
matrix:
7-
os: [macos-latest, ubuntu-latest, windows-latest]
8-
runs-on: ${{ matrix.os }}
9-
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v2
12-
- name: Install Node.js
13-
uses: actions/setup-node@v1
14-
with:
15-
node-version: 10.x
16-
- run: yarn install
17-
- run: yarn vscode:prepublish
4+
build:
5+
strategy:
6+
matrix:
7+
os: [macos-latest, ubuntu-latest, windows-latest]
8+
runs-on: ${{ matrix.os }}
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Install Node.js
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 10.x
16+
- run: yarn install
17+
- run: yarn vscode:prepublish
18+
- name: "Package"
19+
run: npx vsce package

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
tags:
4+
- v*
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Install Node.js
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 10.x
16+
- run: yarn install
17+
- name: "Prepublish"
18+
run: yarn vscode:prepublish
19+
- name: "Publish"
20+
run: npx vsce publish --yarn --pat ${{ secrets.MARKETPLACE_TOKEN }}

.prettierrc.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,13 @@
22
"trailingComma": "es5",
33
"tabWidth": 4,
44
"semi": true,
5-
"useTabs": true
5+
"useTabs": true,
6+
"overrides": [
7+
{
8+
"files": ["*.yml"],
9+
"options": {
10+
"tabWidth": 2
11+
}
12+
}
13+
]
614
}

0 commit comments

Comments
 (0)