using setup-node action
This commit is contained in:
parent
9f6ee2d95c
commit
c349187427
1 changed files with 7 additions and 12 deletions
19
.github/workflows/firebase-hosting-deploy.yml
vendored
19
.github/workflows/firebase-hosting-deploy.yml
vendored
|
@ -10,19 +10,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
- name: Cache node modules
|
- name: Setup Node
|
||||||
uses: actions/cache@v2
|
uses: actions/setup-node@v2
|
||||||
env:
|
|
||||||
cache-name: cache-node-modules
|
|
||||||
with:
|
with:
|
||||||
path: "source/node_modules"
|
node-version: 16
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('source/yarn.lock') }}
|
cache: yarn
|
||||||
restore-keys: |
|
cache-dependency-path: source/yarn.lock
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
- name: Build
|
||||||
${{ runner.os }}-build-
|
run: cd source && yarn build
|
||||||
${{ runner.os }}-
|
|
||||||
- name: Install Dependencies and Build
|
|
||||||
run: cd source && yarn install && yarn build
|
|
||||||
- name: Archive Production Artifact
|
- name: Archive Production Artifact
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue