Skip to content

Commit 5663ad7

Browse files
Feature/more workflow shenanigans (#3)
* Updated deploy workflow * Added in extra deploy config bits
1 parent 83fb900 commit 5663ad7

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,28 @@ on:
66

77
jobs:
88
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [12.x]
13+
914
steps:
10-
- name: Checkout 🛎️
11-
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
15+
- uses: actions/checkout@v1
16+
17+
- name: Cache node modules
18+
uses: actions/cache@v1
19+
with:
20+
path: ~/.npm
21+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.os }}-node-
24+
25+
- name: Node ${{ matrix.node-version }}
26+
uses: actions/setup-node@v1
1227
with:
13-
persist-credentials: false
28+
node-version: ${{ matrix.node-version }}
1429

15-
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
30+
- name: Install and Build
1631
run: |
1732
npm install
1833
npm run build:prod

0 commit comments

Comments
 (0)