-
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.
- Loading branch information
1 parent
3ba121f
commit 559d1e3
Showing
2 changed files
with
48 additions
and
0 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,42 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
test-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
with: | ||
ref: release-candidate | ||
|
||
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | ||
with: | ||
node-version: "^20" | ||
cache: yarn | ||
cache-dependency-path: yarn.lock | ||
|
||
- name: Setup environment | ||
run: sudo apt-get install libelf1 | ||
|
||
- name: Install frontend dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Set VERSION | ||
run: echo "VERSION=$(./scripts/get_version.sh)" >> $GITHUB_ENV | ||
|
||
- name: Log version | ||
run: echo hello version is $VERSION | ||
|
||
- name: Build frontend | ||
run: NODE_ENV=production yarn build | ||
env: | ||
EMBEDLY_KEY: ${{ secrets.EMBEDLY_KEY_RC }} | ||
POSTHOG_ENABLED: true | ||
POSTHOG_API_HOST: https://app.posthog.com | ||
POSTHOG_TIMEOUT_MS: 1000 | ||
POSTHOG_PROJECT_ID: ${{ secrets.POSTHOG_PROJECT_ID_RC }} | ||
POSTHOG_PROJECT_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY_RC }} | ||
SENTRY_DSN: ${{ secrets.SENTRY_DSN_RC }} | ||
SENTRY_ENV: ${{ secrets.MITOPEN_ENVIRONMENT_RC }} | ||
MITOPEN_AXIOS_WITH_CREDENTIALS: true | ||
MITOPEN_API_BASE_URL: https://api.mitopen-rc.odl.mit.edu | ||
MITOPEN_SUPPORT_EMAIL: [email protected] |
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