changed npm install to npm ci

This commit is contained in:
Jordan Violet
2022-09-30 21:25:55 -04:00
parent 39f574178f
commit 5a77a7c53a
2 changed files with 12 additions and 10 deletions

View File

@@ -5,8 +5,8 @@ on:
push:
branches: ["main"]
paths-ignore:
- 'README.md'
- '.github/**'
- "README.md"
- ".github/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -23,7 +23,7 @@ concurrency:
cancel-in-progress: true
env:
BASE_URL: '/'
BASE_URL: "/"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
@@ -42,7 +42,7 @@ jobs:
- name: Build Developer Community site
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
npm install
npm ci
npm run gen-api-docs-all
npm run build
- name: Deploy to GitHub Pages

View File

@@ -2,18 +2,20 @@
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
'on': pull_request
"on": pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
if:
"${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
env:
NODE_ENV: 'development'
NODE_ENV: "development"
steps:
- uses: actions/checkout@v2
- run: npm install && npm run gen-api-docs-all && npm run build
- run: npm ci && npm run gen-api-docs-all && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEVELOPER_COMMUNITY_SITE }}'
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount:
"${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEVELOPER_COMMUNITY_SITE }}"
projectId: developer-community-site