Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit ab19b2b

Browse files
committed
ci: set default working directory
1 parent 67aaf33 commit ab19b2b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/nodejs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,18 @@ jobs:
5252
# needs: [test]
5353
name: Install and publish
5454
runs-on: ubuntu-latest
55+
defaults:
56+
run:
57+
working-directory: example
58+
5559
steps:
5660
- uses: actions/checkout@v2
5761
- uses: actions/setup-node@v1
5862
with:
5963
node-version: 12.x
6064

6165
- run: npm install -g yarn
62-
- run: yarn bootstrap
66+
- run: yarn install
6367
# - uses: expo/expo-github-action@v5
6468
# with:
6569
# expo-version: 3.x
@@ -70,19 +74,15 @@ jobs:
7074
# working-directory: example
7175
# run: expo publish
7276

73-
- name: Build StoryBook 📚
74-
run: yarn example build-storybook
75-
7677
- name: Publish Storybook to GH Pages 🕸
77-
working-directory: example
78-
run: yarn deploy-storybook --existing-output-dir=storybook-static --ci --host-token-env-variable=GITHUB_TOKEN
78+
run: yarn deploy-storybook --ci --host-token-env-variable=GITHUB_TOKEN
7979

8080
- name: Publish Storybook to chromatic 🧪
8181
uses: chromaui/action@v1
8282
with:
8383
token: ${{ secrets.GITHUB_TOKEN }}
8484
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
85-
storybookBuildDir: example/storybook-static
85+
8686
# build-and-deploy:
8787
# needs: [test]
8888
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)