Skip to content

Commit 8cbc1a8

Browse files
authored
Merge pull request #418 from open-o11y/set-output
Update the usage of set-output command in GH actions
2 parents ddbd5ce + 67f393c commit 8cbc1a8

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,9 @@ jobs:
2020
- uses: actions/setup-node@v3
2121
with:
2222
node-version: '16'
23+
cache: 'npm'
2324
check-latest: true
24-
- name: Get npm cache directory
25-
id: npm-cache-dir
26-
run: |
27-
echo "::set-output name=dir::$(npm config get cache)"
28-
- uses: actions/cache@v3
29-
id: npm-cache
30-
with:
31-
path: ${{ steps.npm-cache-dir.outputs.dir }}
32-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
33-
restore-keys: |
34-
${{ runner.os }}-node-
25+
3526
- run: npm ci
3627
- run: npm run build
3728
env:

0 commit comments

Comments
 (0)