added missing package install command

This commit is contained in:
Kim, Jimin 2021-11-16 11:27:38 +09:00
parent 80a920e634
commit b8bb8d828c

View file

@ -1,57 +1,57 @@
name: Deploy to Firebase Hosting on merge name: Deploy to Firebase Hosting on merge
on: on:
push: push:
branches: branches:
- master - master
jobs: jobs:
build: build:
name: Build name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@master uses: actions/checkout@master
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 16
cache: yarn cache: yarn
cache-dependency-path: source/yarn.lock cache-dependency-path: source/yarn.lock
- name: Build - name: Build
run: cd source && yarn 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:
name: build name: build
path: source/build path: source/build
deploy: deploy:
name: Deploy name: Deploy
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@master uses: actions/checkout@master
- name: Download Artifact - name: Download Artifact
uses: actions/download-artifact@master uses: actions/download-artifact@master
with: with:
name: build name: build
path: source/build path: source/build
- name: Set target - name: Set target
uses: w9jds/firebase-action@master uses: w9jds/firebase-action@master
with: with:
args: use developomp-site args: use developomp-site
env: env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- name: Apply target - name: Apply target
uses: w9jds/firebase-action@master uses: w9jds/firebase-action@master
with: with:
args: target:apply hosting stable developomp-site args: target:apply hosting stable developomp-site
env: env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- name: Deploy to Firebase - name: Deploy to Firebase
uses: w9jds/firebase-action@master uses: w9jds/firebase-action@master
with: with:
args: deploy --only hosting:stable args: deploy --only hosting:stable
env: env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}