mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Resolves @bakkot's review
This commit is contained in:
parent
97de5e31f9
commit
c430f5452b
14
.github/workflows/build-frontend-development.yml
vendored
14
.github/workflows/build-frontend-development.yml
vendored
@ -3,7 +3,6 @@
|
|||||||
# - Installs packages via yarn, using yarn.lock
|
# - Installs packages via yarn, using yarn.lock
|
||||||
# - Builds the frontend bundle
|
# - Builds the frontend bundle
|
||||||
# - Commits the frontend bundle
|
# - Commits the frontend bundle
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
||||||
|
|
||||||
name: Frontend CI/CD [dev]
|
name: Frontend CI/CD [dev]
|
||||||
|
|
||||||
@ -17,32 +16,27 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [18.x]
|
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: 'frontend'
|
working-directory: 'frontend'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js 18
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: 18
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
cache-dependency-path: '**/yarn.lock' # THIS PATTERN did the trick for me.
|
cache-dependency-path: '**/yarn.lock'
|
||||||
- name: install packages
|
- name: install packages
|
||||||
run: yarn install --immutable --immutable-cache --check-cache
|
run: yarn install --immutable --immutable-cache --check-cache
|
||||||
- name: build frontend bundle [dev]
|
- name: build frontend bundle [dev]
|
||||||
run: yarn build-dev
|
run: yarn build-dev
|
||||||
- name: setup git config
|
- name: setup git config
|
||||||
run: |
|
run: |
|
||||||
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
|
|
||||||
git config user.name "GitHub Actions Bot"
|
git config user.name "GitHub Actions Bot"
|
||||||
git config user.email "<>"
|
git config user.email "<>"
|
||||||
- name: commit bundle [dev]
|
- name: commit bundle [dev]
|
||||||
run: |
|
run: |
|
||||||
git add dist/* -f
|
git add dist/* -f
|
||||||
git commit -m "[bot] adds dev bundle"
|
git commit -m "[bot] builds dev bundle"
|
||||||
git push origin development
|
git push origin development
|
||||||
|
18
.github/workflows/build-frontend-production.yml
vendored
18
.github/workflows/build-frontend-production.yml
vendored
@ -3,9 +3,8 @@
|
|||||||
# - Installs packages via yarn, using yarn.lock
|
# - Installs packages via yarn, using yarn.lock
|
||||||
# - Builds the frontend bundle
|
# - Builds the frontend bundle
|
||||||
# - Commits the frontend bundle
|
# - Commits the frontend bundle
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
||||||
|
|
||||||
name: Frontend CI/CD [prod]
|
name: Frontend CI/CD [production]
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -17,32 +16,27 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [18.x]
|
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: 'frontend'
|
working-directory: 'frontend'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js 18
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: 18
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
cache-dependency-path: '**/yarn.lock' # THIS PATTERN did the trick for me.
|
cache-dependency-path: '**/yarn.lock'
|
||||||
- name: install packages
|
- name: install packages
|
||||||
run: yarn install --immutable --immutable-cache --check-cache
|
run: yarn install --immutable --immutable-cache --check-cache
|
||||||
- name: build frontend bundle [prod]
|
- name: build frontend bundle [production]
|
||||||
run: yarn build
|
run: yarn build
|
||||||
- name: setup git config
|
- name: setup git config
|
||||||
run: |
|
run: |
|
||||||
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
|
|
||||||
git config user.name "GitHub Actions Bot"
|
git config user.name "GitHub Actions Bot"
|
||||||
git config user.email "<>"
|
git config user.email "<>"
|
||||||
- name: commit bundle [production]
|
- name: commit bundle [production]
|
||||||
run: |
|
run: |
|
||||||
git add dist/* -f
|
git add dist/* -f
|
||||||
git commit -m "[bot] adds production bundle"
|
git commit -m "[bot] builds production bundle"
|
||||||
git push origin main
|
git push origin main
|
||||||
|
Loading…
x
Reference in New Issue
Block a user