Skip to content

Commit

Permalink
fix(ci/cd): build script
Browse files Browse the repository at this point in the history
* removed prebuild from package.json because there is no dist file yet
  and so it has no need to be removed
* only run build when lint and test job succeed
  • Loading branch information
martendebruijn committed Jul 20, 2024
1 parent f11a18b commit 48ca905
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
path: coverage/**/*

build:
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"type": "module",
"types": "dist/index.d.ts",
"scripts": {
"prebuild": "node scripts/dist/rmrf.js",
"build": "tsc --build src/tsconfig.json",
"build:scripts": "tsc --build scripts/tsconfig.json",
"format": "prettier --write src/ scripts/",
Expand Down

0 comments on commit 48ca905

Please sign in to comment.