-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Cache packages when the branch is not update-dependencies or dependabot/* | ||
- name: Resolve caching | ||
id: cache | ||
if: ${{ github.ref_name != 'update-dependencies' && !startsWith(github.ref_name, 'dependabot/') }} | ||
run: echo "PACKAGE=npm" >> $GITHUB_OUTPUT | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: ${{ steps.cache.outputs.PACKAGE }} | ||
|
||
# Install dependencies | ||
- run: npm ci | ||
|
||
# Build and output webpack stats to artifacts/webpack-stats.json | ||
- run: npm run build | ||
working-directory: app | ||
|
||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-artifacts | ||
path: | | ||
artifacts/webpack-stats.json |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.