Skip to content

Commit

Permalink
chore: add yarn cache
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejay97 committed Nov 14, 2021
1 parent 5848abe commit d2b267a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn nx build site --configuration=production
- run: cp ./dist/packages/site/index.html ./dist/packages/site/200.html
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
After the build is complete, you can preview the website here. :coffee: :coffee: :coffee:
edit-mode: replace
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn nx build site --configuration=production
- run: cp ./dist/packages/site/index.html ./dist/packages/site/200.html
Expand Down

0 comments on commit d2b267a

Please sign in to comment.