mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-06 12:27:46 +00:00
changed npm install to npm ci
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user