Skip to content

Commit

Permalink
ci: run publint right before semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdbd committed Feb 6, 2024
1 parent c191c6a commit b711dae
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ jobs:
hide-files: '{api-docs/**,docs/**,*.d.ts,*.map}'
unchanged-files: show

- run: npx publint run .

- name: 🚀 Release to npmjs
if: ${{ matrix.os == 'ubuntu-latest' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/canary') }}
env:
Expand Down
134 changes: 132 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
},
"exports": {
".": {
"import": "./dist/lib.js",
"types": "./dist/lib.d.ts"
"types": "./dist/lib.d.ts",
"import": "./dist/lib.js"
},
"./lib": {
"import": "./dist/lib.js",
"types": "./dist/lib.d.ts"
"types": "./dist/lib.d.ts",
"import": "./dist/lib.js"
},
"./package.json": "./package.json"
},
Expand All @@ -56,7 +56,7 @@
],
"scripts": {
"ae:local": "api-extractor run --config ./config/api-extractor.json --verbose --local",
"build": "run-s 'build:ts' 'docs' 'readme' --print-label",
"build": "run-s 'build:ts' 'docs' 'readme' 'publint' --print-label",
"build:ts": "tsc -p tsconfig.json",
"build:ts:watch": "tsc -p tsconfig.json --watch",
"clean": "rimraf coverage/lcov.info dist/ tsconfig.tsbuildinfo",
Expand All @@ -73,6 +73,7 @@
"format": "prettier --config ./config/prettier.cjs --write ./config/**/*.{cjs,json} ./src/**/*.ts ./test/**/*.mjs",
"lint": "eslint --config ./config/eslint.cjs",
"nuke": "npm run clean && rimraf node_modules 'package-lock.json'",
"publint": "publint run .",
"readme": "npm run example && tsm readme.ts",
"release:dry": "semantic-release --debug --dry-run --no-ci",
"size": "pkg-size ./dist --sort-by=brotli --ignore-files '{*.d.ts,*.map}'",
Expand Down Expand Up @@ -102,6 +103,7 @@
"npm-run-all": "^4.1.5",
"pkg-size": "^2.4.0",
"prettier": "^3.2.4",
"publint": "^0.2.7",
"rimraf": "^5.0.5",
"semantic-release": "^23.0.0",
"tsm": "^2.3.0",
Expand Down

0 comments on commit b711dae

Please sign in to comment.