Skip to content

Commit e7a8a2c

Browse files
committed
Add caching for yarn and crowdin
1 parent d3c9271 commit e7a8a2c

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,24 @@ jobs:
1616
- name: Use Node.js 10
1717
uses: actions/setup-node@v1
1818
with:
19-
version: 10
20-
21-
- name: Use Yarn
22-
run: |
23-
curl -o- -L https://yarnpkg.com/install.sh | bash
19+
node-version: 10
2420

2521
- name: Use crowdin
2622
run: |
27-
wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
23+
wget -c https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
2824
sudo dpkg -i crowdin.deb
2925
26+
- name: Get yarn cache
27+
id: yarn-cache
28+
run: echo "::set-output name=dir::$(yarn cache dir)"
29+
30+
- uses: actions/cache@v1
31+
with:
32+
path: ${{ steps.yarn-cache.outputs.dir }}
33+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-yarn-
36+
3037
- name: Install dependencies
3138
run: |
3239
yarn --cwd website --frozen-lockfile
@@ -39,7 +46,7 @@ jobs:
3946
yarn --cwd website crowdin-upload
4047
yarn --cwd website crowdin-download
4148
42-
- name: Publish
49+
- name: Publish to Github pages
4350
env:
4451
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }}
4552
GITHUB_EMAIL: ${{ secrets.DEPLOY_GITHUB_EMAIL }}

docs/next-steps.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@ The rest of the documentation is organized around specific use cases, so you can
1010

1111
While most users won't need to do this, if you are curious and want to learn more about how React Navigation works, it's recommended to work through the "Build your own Navigator" section.
1212

13-
Lastly, you might want to bookmark the [API reference](api-reference.html) page for future reference.
14-
1513
Good luck!

0 commit comments

Comments
 (0)