Skip to content

Commit 8033664

Browse files
committed
v6: ci/cd: Fix npm publish & coverage report upload
1 parent 254cd8a commit 8033664

File tree

5 files changed

+682
-63
lines changed

5 files changed

+682
-63
lines changed

.github/workflows/ci-test.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,11 @@ jobs:
3333
# This runs vitest with coverage enabled
3434
run: yarn test:coverage
3535

36-
- name: Upload coverage to Coveralls
37-
uses: coverallsapp/github-action@v2
38-
with:
39-
# AUTOMATIC FOR PUBLIC REPOS:
40-
github-token: ${{ secrets.GITHUB_TOKEN }}
41-
42-
# REQUIRED FOR PRIVATE REPOS:
43-
# repo-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
44-
45-
# Optional: Explicitly point to the file if it's not found automatically
46-
# path-to-lcov: ./coverage/lcov.info
47-
debug: true
36+
- name: Upload to Coveralls
37+
run: yarn coveralls
38+
env:
39+
# REQUIRED: The script needs this to know where to upload
40+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
4841

4942
- name: Build the library
5043
run: yarn build

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write # Required to create the GitHub Release
13+
id-token: write # Required for actions/setup-node to authenticate with npm
1314

1415
strategy:
1516
matrix:

.travis.yml

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

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"test:watch": "vitest",
5252
"test:ui": "vitest --ui",
5353
"test:coverage": "vitest run --coverage",
54+
"coveralls": "cat ./coverage/lcov.info | coveralls",
5455
"lint": "eslint .",
5556
"lint:fix": "eslint . --fix",
5657
"check:prettier": "prettier -c src/",
@@ -69,6 +70,7 @@
6970
"@typescript-eslint/parser": "^8.46.4",
7071
"@vitest/coverage-v8": "4.0.9",
7172
"@vitest/ui": "^4.0.9",
73+
"coveralls": "^3.1.1",
7274
"esdoc": "^1.1.0",
7375
"esdoc-standard-plugin": "^1.0.0",
7476
"eslint": "^9.39.1",
@@ -79,6 +81,7 @@
7981
"globals": "^16.5.0",
8082
"husky": "^9.1.7",
8183
"lint-staged": "^16.2.6",
84+
"nyc": "^17.1.0",
8285
"prettier": "^3.6.2",
8386
"sqlite3": "^5.1.7",
8487
"typescript": "^5.9.3",

0 commit comments

Comments
 (0)