File tree Expand file tree Collapse file tree 3 files changed +20
-48
lines changed
packages/signals/signals-example Expand file tree Collapse file tree 3 files changed +20
-48
lines changed Original file line number Diff line number Diff line change 55 HUSKY : 0
66 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
77jobs :
8- deploy :
9- runs-on : ubuntu-latest
10-
11- steps :
12- - uses : actions/checkout@v3
13-
14- - name : Setup Node
15- uses : actions/setup-node@v3
16- with :
17- node-version : ' 20.x'
18- cache : ' yarn'
19-
20- - name : Installing Dependencies
21- run : yarn install
22-
23- - name : Building App
24- run : yarn build
25- env :
26- REACT_APP_SEGMENT_WRITE_KEY : ${{ secrets.REACT_APP_SEGMENT_WRITE_KEY }}
27-
28- - name : Deploy with gh-pages
29- run : |
30- git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
31- npx gh-pages -d build -u "github-actions-bot <[email protected] >" 32- env :
33- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34-
358 analytics-node :
369 name : ' analytics-node QA (Node.js v${{ matrix.node-version }})'
3710 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 55 branches :
66 # - main
77 - deploy-signals-example
8-
8+ env :
9+ HUSKY : 0
10+ PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
911jobs :
1012 deploy :
1113 runs-on : ubuntu-latest
12-
14+ strategy :
15+ matrix :
16+ node-version : [20.x]
1317 steps :
1418 - uses : actions/checkout@v3
15-
16- - name : Setup Node
17- uses : actions/setup-node@v3
19+ - uses : actions/setup-node@v3
1820 with :
19- node-version : ' 20.x '
21+ node-version : ${{ matrix.node-version }}
2022 cache : ' yarn'
21-
22- - name : Change Directory to signals-example
23- run : cd packages/signals/signals-example
24-
25- - name : Installing Dependencies
26- run : yarn install
27- working-directory : packages/signals/signals-example
28-
29- - name : Building App
30- run : yarn build
31- working-directory : packages/signals/signals-example
32-
23+ - run : yarn install --immutable
24+ - name : Turbo cache
25+ uses : actions/cache@v3
26+ with :
27+ path : node_modules/.cache/turbo
28+ key : ${{ runner.os }}-turbo-${{ github.sha }}
29+ restore-keys : |
30+ ${{ runner.os }}-turbo-
31+ - run : yarn turbo run --filter='./packages/signals/signals-example...' build
3332 - name : Deploy with gh-pages
33+ working-directory : packages/signals/signals-example
3434 run : |
3535 git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
36- npx gh-pages -d build -u "github-actions-bot <[email protected] >" 36+ yarn deploy
3737 env :
3838 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39- working-directory : packages/signals/signals-example
Original file line number Diff line number Diff line change 11{
22 "name" : " @internal/signals-example" ,
33 "private" : true ,
4- "homepage" : " https://segmentio.github.io/<repository-name>/my-test-site " ,
4+ "homepage" : " https://segmentio.github.io/<repository-name>/signals-example " ,
55 "scripts" : {
66 "." : " yarn run -T turbo run --filter=@internal/signals-example..." ,
77 "dev" : " webpack serve" ,
You can’t perform that action at this time.
0 commit comments