Revert Auto Build Frontend Workflow

This commit is contained in:
blessedcoolant 2022-10-07 06:41:03 +13:00
parent bf5ccfffa5
commit 0c1c220bb9
2 changed files with 0 additions and 84 deletions

View File

@ -1,42 +0,0 @@
# This workflow:
# - Sets up Node.js with a yarn cache
# - Installs packages via yarn, using yarn.lock
# - Builds the frontend bundle
# - Commits the frontend bundle
name: Frontend CI/CD [dev]
on:
push:
branches: [ "development" ]
paths: 'frontend/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'frontend'
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- name: install packages
run: yarn install --immutable --immutable-cache --check-cache
- name: build frontend bundle [dev]
run: yarn build-dev
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: commit bundle [dev]
run: |
git add dist/* -f
git commit -m "[bot] builds dev bundle"
git push origin development

View File

@ -1,42 +0,0 @@
# This workflow:
# - Sets up Node.js with a yarn cache
# - Installs packages via yarn, using yarn.lock
# - Builds the frontend bundle
# - Commits the frontend bundle
name: Frontend CI/CD [production]
on:
push:
branches: [ "main" ]
paths: 'frontend/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'frontend'
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- name: install packages
run: yarn install --immutable --immutable-cache --check-cache
- name: build frontend bundle [production]
run: yarn build
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: commit bundle [production]
run: |
git add dist/* -f
git commit -m "[bot] builds production bundle"
git push origin main