Skip to content

Commit bc0cfc4

Browse files
authored
Merge pull request #67 from cloudgraphdev/beta
Upgrade setup-node to Latest Version
2 parents c9a39d1 + a60aac5 commit bc0cfc4

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/homebrew.yaml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ jobs:
1919
fetch-depth: 0
2020
persist-credentials: false
2121
token: ${{secrets.GH_TOKEN}}
22-
- uses: actions/setup-node@v2
22+
23+
- uses: actions/setup-node@v3
2324
with:
2425
node-version: 16
2526
registry-url: "https://registry.npmjs.org"
27+
cache: yarn
2628

2729
- name: Mkdir .aws
2830
run: mkdir -p ~/.aws
@@ -46,23 +48,8 @@ jobs:
4648
aws_secret_access_key = ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4749
EOF
4850
49-
- name: Get cache directory
50-
id: npm-cache-dir
51-
run: |
52-
echo "::set-output name=dir::$(npm config get cache)"
53-
54-
- name: Restoring cache
55-
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
56-
uses: actions/cache@v2
57-
with:
58-
path: ${{ steps.npm-cache-dir.outputs.dir }}
59-
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
60-
restore-keys: |
61-
${{ runner.os }}-yarn-
62-
6351
- name: Install Packages
64-
if: steps.npm-cache.outputs.cache-hit != 'true'
65-
run: yarn install --frozen-lockfile --cache-folder .npm --prefer-offline
52+
run: yarn install --prefer-offline --frozen-lockfile
6653

6754
- name: Build
6855
run: yarn build

0 commit comments

Comments
 (0)