Skip to content

Commit 2e267ff

Browse files
committed
wip
1 parent 17793d1 commit 2e267ff

File tree

3 files changed

+20
-48
lines changed

3 files changed

+20
-48
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,6 @@ env:
55
HUSKY: 0
66
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
77
jobs:
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

.github/workflows/deploy-signals-example-to-github-pages.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,34 @@ on:
55
branches:
66
# - main
77
- deploy-signals-example
8-
8+
env:
9+
HUSKY: 0
10+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
911
jobs:
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

packages/signals/signals-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)