Skip to content

Commit 6408b31

Browse files
authored
Merge pull request #2123 from cprussin/fix-publish
fix(ci): fix CI js builds
2 parents 185900a + b56bbb3 commit 6408b31

File tree

5 files changed

+43
-5
lines changed

5 files changed

+43
-5
lines changed

.github/workflows/ci-turbo-build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Turbo build
2+
on:
3+
pull_request:
4+
paths:
5+
- "**.tsx?"
6+
- "**.jsx?"
7+
- "**.json"
8+
- "**.sol"
9+
- "**/package.json"
10+
- "**/package-lock.json"
11+
- "**/tsconfig.json"
12+
push:
13+
branches: [main]
14+
paths:
15+
- "**.tsx?"
16+
- "**.jsx?"
17+
- "**.json"
18+
- "**.sol"
19+
- "**/package.json"
20+
- "**/package-lock.json"
21+
- "**/tsconfig.json"
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version-file: "package.json"
30+
- uses: pnpm/action-setup@v4
31+
name: Install pnpm
32+
with:
33+
run_install: true
34+
- name: Build
35+
run: pnpm build:ci

.github/workflows/ci-turbo.yml renamed to .github/workflows/ci-turbo-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
with:
3333
run_install: true
3434
- name: Test
35-
run: pnpm turbo test --ui stream
35+
run: pnpm test:ci

.github/workflows/publish-js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ jobs:
2121
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
2222
env:
2323
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24-
- run: pnpm turbo build
25-
- run: pnpm exec lerna publish from-package --no-private --no-git-tag-version --yes
24+
- run: pnpm build:ci
25+
- run: pnpm publish

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
"pnpm": "^9.12.3"
88
},
99
"scripts": {
10+
"build:ci": "turbo build --filter=!./apps/api-reference --filter=!./apps/insights --filter=!./apps/staking",
1011
"example:hermes-client": "pnpm i && turbo example --filter @pythnetwork/hermes-client --ui stream",
1112
"fix": "pnpm i && turbo fix",
13+
"publish": "lerna publish from-package --no-private --no-git-tag-version --yes",
1214
"start:dev": "pnpm i && turbo start:dev",
1315
"start:prod": "pnpm i && turbo start:prod",
14-
"test": "pnpm i && turbo test"
16+
"test": "pnpm i && turbo test",
17+
"test:ci": "turbo test"
1518
},
1619
"devDependencies": {
1720
"lerna": "^8.1.8",

target_chains/ton/contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"start": "blueprint run",
7-
"build": "echo Pyth | blueprint build",
7+
"build:blueprint": "echo Pyth | blueprint build",
88
"test:unit": "jest --verbose"
99
},
1010
"devDependencies": {

0 commit comments

Comments
 (0)