mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-07 12:27:47 +00:00
changed npm install to npm ci
This commit is contained in:
@@ -5,8 +5,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'README.md'
|
- "README.md"
|
||||||
- '.github/**'
|
- ".github/**"
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -23,7 +23,7 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BASE_URL: '/'
|
BASE_URL: "/"
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- name: Build Developer Community site
|
- name: Build Developer Community site
|
||||||
run: |
|
run: |
|
||||||
export NODE_OPTIONS="--max_old_space_size=4096"
|
export NODE_OPTIONS="--max_old_space_size=4096"
|
||||||
npm install
|
npm ci
|
||||||
npm run gen-api-docs-all
|
npm run gen-api-docs-all
|
||||||
npm run build
|
npm run build
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
|
|||||||
@@ -2,18 +2,20 @@
|
|||||||
# https://github.com/firebase/firebase-tools
|
# https://github.com/firebase/firebase-tools
|
||||||
|
|
||||||
name: Deploy to Firebase Hosting on PR
|
name: Deploy to Firebase Hosting on PR
|
||||||
'on': pull_request
|
"on": pull_request
|
||||||
jobs:
|
jobs:
|
||||||
build_and_preview:
|
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
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
NODE_ENV: 'development'
|
NODE_ENV: "development"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- uses: FirebaseExtended/action-hosting-deploy@v0
|
||||||
with:
|
with:
|
||||||
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEVELOPER_COMMUNITY_SITE }}'
|
firebaseServiceAccount:
|
||||||
|
"${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEVELOPER_COMMUNITY_SITE }}"
|
||||||
projectId: developer-community-site
|
projectId: developer-community-site
|
||||||
|
|||||||
Reference in New Issue
Block a user