Skip to content

Commit a840eb7

Browse files
committed
add CI
Signed-off-by: Luke-zhang-04 <[email protected]>
1 parent 65f69b4 commit a840eb7

File tree

4 files changed

+49
-62
lines changed

4 files changed

+49
-62
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Node.js CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: build
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: '14.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
17+
- name: install deps
18+
run: yarn install --frozen-lockfile
19+
20+
- name: build
21+
run: yarn tsc

.github/workflows/inclusivelint.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: '14.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
17+
- name: install deps
18+
run: yarn install --frozen-lockfile
19+
20+
- name: build
21+
run: yarn vsce package
22+
23+
- name: Release
24+
uses: softprops/action-gh-release@v1
25+
with:
26+
files: ./processing-vscode-*.vsix
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)