generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): add build workflow (#459)
- Loading branch information
Showing
2 changed files
with
40 additions
and
36 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,40 @@ | ||
name: Build | ||
|
||
# Control when the action will run | ||
on: | ||
# Triggers the workflow on push events | ||
push: | ||
|
||
concurrency: | ||
group: build-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check-out repository under $GITHUB_WORKSPACE, so the job can access it | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Yarn Install and Cache | ||
uses: graasp/graasp-deploy/.github/actions/yarn-install-and-cache@v1 | ||
with: | ||
cypress: false | ||
|
||
# type check | ||
- name: Type-check code | ||
run: tsc --noEmit | ||
|
||
- name: Build App | ||
run: yarn build | ||
shell: bash | ||
env: | ||
VITE_PORT: 3112 | ||
VITE_VERSION: build-ci | ||
VITE_GRAASP_DOMAIN: localhost | ||
VITE_GRAASP_API_HOST: http://localhost:3636 | ||
VITE_GRAASP_AUTH_HOST: http://localhost:3001 | ||
VITE_GRAASP_BUILDER_HOST: http://localhost:3111 | ||
VITE_SHOW_NOTIFICATIONS: true |
This file was deleted.
Oops, something went wrong.