Skip to content

Commit c13f7db

Browse files
committed
workflow changes
1 parent c309370 commit c13f7db

File tree

4 files changed

+16
-42
lines changed

4 files changed

+16
-42
lines changed

.github/workflows/cache.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ on:
55
jobs:
66
release:
77
name: Release
8-
needs: cache_node_modules
98
runs-on: ubuntu-latest
109
steps:
1110
- name: Checkout repository code
12-
uses: actions/checkout@main
11+
uses: actions/checkout@v2
1312

14-
- name: Load node_modules
13+
- name: Cache node_modules
1514
id: cache-node-modules
16-
uses: actions/cache@main
15+
uses: actions/cache@v2
1716
with:
1817
path: node_modules
19-
key: node_modules-${{ hashFiles('package-lock.json') }}
18+
key: node_modules-deploy-${{ hashFiles('package-lock.json') }}
2019

21-
- name: Install node_modules
20+
- name: Install node modules
2221
if: steps.cache-node-modules.outputs.cache-hit != 'true'
2322
run: npm install
23+
2424
- run: npm run generate
2525
- run: npm run test
2626
- run: npx semantic-release

.github/workflows/storybook.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,23 @@ on:
44
branches: [ main ]
55
jobs:
66
build-and-deploy:
7-
needs: cache_node_modules
87
runs-on: ubuntu-latest
98
env:
109
NODE_OPTIONS: '--max_old_space_size=4096'
1110
steps:
1211
- name: Checkout 🛎️
13-
uses: actions/checkout@main
12+
uses: actions/checkout@v2
1413
with:
1514
persist-credentials: false
1615

17-
- name: Load node_modules
16+
- name: Cache node_modules
1817
id: cache-node-modules
19-
uses: actions/cache@main
18+
uses: actions/cache@v2
2019
with:
2120
path: node_modules
22-
key: node_modules-${{ hashFiles('package-lock.json') }}
21+
key: node_modules-deploy-${{ hashFiles('package-lock.json') }}
2322

24-
- name: Install node_modules
23+
- name: Install node modules
2524
if: steps.cache-node-modules.outputs.cache-hit != 'true'
2625
run: npm install
2726

.github/workflows/test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ on:
66
jobs:
77
release:
88
name: Test
9-
needs: cache_node_modules
109
runs-on: ubuntu-latest
1110
steps:
1211
- name: Checkout repository code
13-
uses: actions/checkout@main
12+
uses: actions/checkout@v2
1413

15-
- name: Load node_modules
14+
- name: Cache node_modules
1615
id: cache-node-modules
17-
uses: actions/cache@main
16+
uses: actions/cache@v2
1817
with:
1918
path: node_modules
20-
key: node_modules-${{ hashFiles('package-lock.json') }}
19+
key: node_modules-deploy-${{ hashFiles('package-lock.json') }}
2120

22-
- name: Install node_modules
21+
- name: Install node modules
2322
if: steps.cache-node-modules.outputs.cache-hit != 'true'
2423
run: npm install
2524

0 commit comments

Comments
 (0)