Skip to content

Commit 96305de

Browse files
author
Giuseppe Pennisi
committed
chore: updated workflows
1 parent 6caa4c1 commit 96305de

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/pr_on_master.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,15 @@ jobs:
2525
fetch-depth: 0
2626

2727
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v1
28+
uses: actions/setup-node@v3
2929
with:
3030
node-version: ${{ matrix.node-version }}
31+
cache: 'npm'
3132

3233
# Make sure we have all branches
3334
- name: Fetch other branches
3435
run: git fetch --no-tags --prune --depth=5 origin master
3536

36-
# https://github.com/marketplace/actions/npm-install-cache
37-
- uses: c-hive/gha-npm-cache@v1
38-
if: ${{ !env.ACT }}
39-
4037
- uses: nrwl/nx-set-shas@v3
4138
with:
4239
main-branch-name: 'master'

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ jobs:
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030
registry-url: https://registry.npmjs.org/
31-
32-
# https://github.com/marketplace/actions/npm-install-cache
33-
- uses: c-hive/gha-npm-cache@v1
34-
if: ${{ !env.ACT }}
31+
cache: 'npm'
3532

3633
- name: Set variables
3734
run: |

0 commit comments

Comments
 (0)