aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/front-ci.yaml13
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/front-ci.yaml b/.github/workflows/front-ci.yaml
index 93581dad..2373c48c 100644
--- a/.github/workflows/front-ci.yaml
+++ b/.github/workflows/front-ci.yaml
@@ -22,19 +22,26 @@ jobs:
steps:
- uses: actions/checkout@v2
+ - uses: actions/cache@v2
+ with:
+ path: ~/.npm
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-node-
+
- name: Use Node.js 15
uses: actions/setup-node@v1
with:
node-version: "15"
- name: Restore Packages
- run: yarn
+ run: npm ci
- name: Build App
- run: yarn build
+ run: npm run build
- name: Lint Code
- run: yarn lint
+ run: npm run lint
- name: Upload Artifact
uses: actions/upload-artifact@v2