Skip to content

Commit 307fac8

Browse files
committed
fix some CI and tooling
1 parent baf846d commit 307fac8

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
- name: Checkout
99
uses: actions/checkout@v4
1010

11-
- name: Install pnpm
12-
uses: pnpm/action-setup@v3
11+
# - name: Install pnpm
12+
# uses: pnpm/action-setup@v3
1313

1414
- name: Install Cypress
1515
run: npx cypress install
@@ -18,12 +18,16 @@ jobs:
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: 20
21-
cache: pnpm
21+
# cache: pnpm
2222

23-
- run: pnpm install --no-frozen-lockfile
24-
- run: pnpm build
25-
# - run: pnpm compile
26-
- run: pnpm test
23+
- run: npm install
24+
- run: npm run check:ts
25+
- run: npm run lint:ts
26+
- run: npm run lint:css
27+
- run: npm run build-vite
28+
- run: pnp run compile-scss
29+
- run: npm run clean-coverage
30+
- run: npx cypress run
2731

2832
- name: Upload coverage report on Node 20 to coveralls.io...
2933
uses: coverallsapp/github-action@master

dts.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const config = {
33
{
44
filePath: "./src/ts/index.ts",
55
outFile: "./dist/js/navbar.d.ts",
6-
noCheck: false,
6+
noCheck: true,
77
output: {
88
umdModuleName: 'Navbar',
99
noBanner: true,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"check:ts": "tsc --noEmit",
4848
"fix:css": "stylelint --config .stylelintrc.json --fix scss \"src/scss/*.scss\"",
4949
"lint:css": "stylelint --config .stylelintrc.json scss \"src/scss/*.scss\"",
50-
"build": "pnpm check:ts && pnpm lint:ts && pnpm build-vite && pnpm dts",
51-
"build-vite": "vite build && pnpm docs",
50+
"build": "pnpm check:ts && pnpm lint:ts && pnpm build-vite && pnpm dts && pnpm docs",
51+
"build-vite": "vite build",
5252
"dts": "dts-bundle-generator --config ./dts.config.ts",
5353
"docs": "ncp dist/js/navbar.js docs/src/js/navbar.js && ncp dist/js/navbar.js.map docs/src/js/navbar.js.map",
5454
"compile": "pnpm lint:css && npm-run-all --parallel compile-* && pnpm copy-compile",
File renamed without changes.

0 commit comments

Comments
 (0)