Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
name: Webpack Build
name: Client Build

on:
push:
branches: [ main ]
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: actions/setup-node@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Build

- name: Webpack
run: |
npm install
NODE_ENV=production NODE_OPTIONS=--loader=ts-node/esm webpack --mode production
git config advice.addIgnoredFile false

- name: Prune
run : |
rm -v !("docs"|"README.md"|"LICENSE")

- name: Push
run: |
git config --global user.email "wolfemikl@gmail.com"
git config --global user.name "Mikl Wolfe"
git add docs
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test Build

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Webpack
run: |
npm install
NODE_ENV=production NODE_OPTIONS=--loader=ts-node/esm webpack --mode production

- name: Prune
run : |
rm -v !("docs"|"README.md"|"LICENSE")

- name: Push
run: |
git config --global user.email "wolfemikl@gmail.com"
git config --global user.name "Mikl Wolfe"
git add docs
git commit -am 'Update production build'
git push -f origin main:test