Skip to content

Commit 33e286a

Browse files
committed
feat: skip prepack in CI
1 parent 1d180d2 commit 33e286a

5 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/cd-packages.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ jobs:
2020
cache: yarn
2121
- name: Install dependencies
2222
run: yarn install --immutable
23+
- name: Build packages
24+
run: yarn workspaces foreach --all --no-private -pt run build
2325
- name: Publish packages
2426
run: yarn workspaces foreach --all --no-private -pt npm publish --tolerate-republish --json | tee publish.log
2527
env:
28+
SKIP_PREPACK: true
2629
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2730
- name: Tag published packages
2831
run: node scripts/tag-published-packages.mjs publish.log

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"scripts": {
99
"clean": "yarn workspaces foreach --all -p run clean",
1010
"lint": "yarn workspaces foreach --all -p run lint",
11-
"build:libs": "yarn workspaces foreach -Rpt --from '{@human-protocol/sdk,packages/libs/*}' run build",
11+
"build:libs": "yarn workspaces foreach --all --no-private -pt run build",
1212
"docker:infra-up": "make -C ./docker-setup -f Makefile.dev infra-up",
1313
"docker:infra-stop": "make -C ./docker-setup -f Makefile.dev infra-stop",
1414
"docker:infra-down": "make -C ./docker-setup -f Makefile.dev infra-down",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"format": "yarn format:contracts && yarn format:scripts",
3838
"clean:build": "tsc --build --clean && rm -rf dist",
3939
"build": "yarn compile && yarn clean:build && tsc --build",
40-
"prepack": "yarn build"
40+
"prepack": "[ \"${SKIP_PREPACK:-}\" = \"true\" ] && exit 0 || yarn build"
4141
},
4242
"repository": {
4343
"type": "git",

packages/libs/logger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"build": "yarn clean && tsc --build",
1414
"lint": "eslint \"src/**/*.ts\" --fix",
1515
"format": "prettier --write \"src/**/*.ts\"",
16-
"prepack": "yarn build"
16+
"prepack": "[ \"${SKIP_PREPACK:-}\" = \"true\" ] && exit 0 || yarn build"
1717
},
1818
"dependencies": {
1919
"pino": "^9.7.0",

packages/sdk/typescript/human-protocol-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lint": "eslint .",
1818
"lint:fix": "eslint . --fix",
1919
"format": "prettier --write '**/*.{ts,json}'",
20-
"prepack": "yarn build"
20+
"prepack": "[ \"${SKIP_PREPACK:-}\" = \"true\" ] && exit 0 || yarn build"
2121
},
2222
"repository": {
2323
"url": "https://github.com/humanprotocol/human-protocol.git",

0 commit comments

Comments
 (0)