Skip to content

Commit 7109d89

Browse files
committed
Split npm run ci script into step-specific cmds
1 parent 8950c1c commit 7109d89

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
cache: 'pnpm'
3535
- name: "Run checks"
3636
run: |
37-
npm run ci
37+
npm run ci:checks
3838
npm run lint
3939
npm run format:check
4040
npm run docs
@@ -74,7 +74,7 @@ jobs:
7474
password: ${{secrets.DOCKER_PASSWORD}}
7575
- name: "Install dependencies"
7676
run: |
77-
npm run ci
77+
npm run ci:test
7878
ci/run_dependencies.sh ${{ matrix.versions.weaviate }}
7979
- name: "Run tests without authentication tests"
8080
run: WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm run test
@@ -107,7 +107,7 @@ jobs:
107107
password: ${{secrets.DOCKER_PASSWORD}}
108108
- name: "Install dependencies"
109109
run: |
110-
npm run ci
110+
npm run ci:test
111111
ci/run_dependencies.sh ${{ matrix.versions.weaviate }}
112112
- name: "Run tests with authentication tests"
113113
if: ${{ !github.event.pull_request.head.repo.fork }}
@@ -139,7 +139,7 @@ jobs:
139139
node-version: 22
140140
cache: 'pnpm'
141141
registry-url: 'https://registry.npmjs.org'
142-
- run: npm run ci
142+
- run: npm run ci:publish
143143
- run: npm run build
144144
- run: npm publish
145145
env:

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
"build:node": "pnpm --filter @weaviate/node... run build",
2929
"build:web": "pnpm --filter @weaviate/web... run build",
3030
"build": "npm run build:core && npm run build:node && npm run build:web",
31-
"ci": "npm run install:core && npm run build:core && npm run install:node && npm run install:web"
31+
"ci:checks": "npm run install:core && npm run build:core && npm run install:node && npm run install:web",
32+
"ci:test": "npm run ci:checks && npm run build:node",
33+
"ci:publish": "npm run ci:test && npm run build:web"
3234
},
3335
"repository": {
3436
"type": "git",

0 commit comments

Comments
 (0)