Skip to content

Commit

Permalink
chore: 🤖 upgrade workflow 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoshuangLi committed Jan 9, 2024
1 parent db6cfad commit 8d9abe0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
node: [20.x]

steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache node_modules
uses: actions/cache@v2
uses: actions/cache@v3
id: cache-node_modules
with:
path: node_modules
Expand All @@ -41,20 +41,20 @@ jobs:
node: [20.x]

steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Restore cache from node_modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-lock.json') }}

- name: Cache package version
uses: actions/cache@v2
uses: actions/cache@v3
id: cache-package-version
with:
path: package.json
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
node: [20.x]

steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache node_modules
uses: actions/cache@v2
uses: actions/cache@v3
id: cache-node_modules
with:
path: node_modules
Expand All @@ -41,14 +41,14 @@ jobs:
node: [20.x]

steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Restore cache from node_modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -64,14 +64,14 @@ jobs:
node: [20.x]

steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Restore cache from node_modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-lock.json') }}
Expand Down

0 comments on commit 8d9abe0

Please sign in to comment.