Skip to content

Commit 0987a12

Browse files
committed
feat: Add Github CI
1 parent cc972a9 commit 0987a12

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-2
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: "22"
23+
cache: pnpm
24+
25+
- name: Install dependencies
26+
run: pnpm i
27+
28+
- name: Lint
29+
run: pnpm lint
30+
31+
typecheck:
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- name: Install pnpm
38+
uses: pnpm/action-setup@v4
39+
40+
- name: Setup Node.js
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: "22"
44+
cache: pnpm
45+
46+
- name: Install dependencies
47+
run: pnpm i
48+
49+
- name: Typecheck
50+
run: pnpm typecheck

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Go to component definition in Vue 2 SFC",
66
"icon": "assets/icon.png",
77
"license": "MIT",
8-
"version": "1.0.0",
8+
"version": "1.1.0",
99
"packageManager": "[email protected]",
1010
"author": "Daniel Petr Honys <[email protected]>",
1111
"homepage": "https://github.com/DPHonys/vue2-sfc-goto-definition#readme",
@@ -77,7 +77,8 @@
7777
"lint": "eslint src && prettier --check src",
7878
"lint:fix": "prettier --write --list-different src && eslint src --fix",
7979
"package": "vsce package",
80-
"publish": "vsce publish"
80+
"publish": "vsce publish",
81+
"typecheck": "tsc --noEmit"
8182
},
8283
"devDependencies": {
8384
"@rollup/plugin-commonjs": "^26.0.1",

0 commit comments

Comments
 (0)