Skip to content

Commit

Permalink
refactor: move build lint test to GH workflow
Browse files Browse the repository at this point in the history
publint needs the built files to report correctly
  • Loading branch information
wkillerud committed Jul 25, 2024
1 parent e71020b commit 7627249
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ jobs:
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures

- name: Build
run: npm run build

- name: Lint
run: npm run lint

- name: Test
run: npm test

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json",
"dev": "tsc -w",
"lint": "eslint 'src/**/*.ts'",
"test": "vitest",
"prepublishOnly": "npm run build && npm run lint && npm run test"
"test": "vitest"
},
"author": "William Killerud <[email protected]> (https://www.williamkillerud.com/)",
"license": "MIT",
Expand Down

0 comments on commit 7627249

Please sign in to comment.