Skip to content

Commit

Permalink
ci: Set cache-dependency-path to all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MorevM committed Feb 20, 2022
1 parent a9ea81a commit 7f0d9e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v2.4.0
with:
node-version: '16'
cache: yarn
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,22 @@ jobs:
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v2.4.0
with:
node-version: '16'
cache: yarn
cache-dependency-path: ./docs/yarn.lock

- name: Go to docs directory
run: cd docs
cache-dependency-path: docs/yarn.lock

- name: Install dependencies
working-directory: docs
run: yarn install

- name: Generate docs
working-directory: docs
run: yarn generate

- name: Deploy
- name: Publish to GH pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
folder: docs/dist
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v2.4.0
with:
node-version: '16'
cache: yarn
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install
Expand Down

0 comments on commit 7f0d9e6

Please sign in to comment.