Skip to content

Commit

Permalink
actions/cache@v2 and actions/setup-node@v2 (#404)
Browse files Browse the repository at this point in the history
* actions/cache@v2 and actions/setup-node@v2

* correction

* v2-beta

* oops
  • Loading branch information
peterbe committed Oct 20, 2020
1 parent 7ec61c1 commit 4c63d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down

0 comments on commit 4c63d6d

Please sign in to comment.