Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.23.0 #1724

Merged
merged 99 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
c39d346
Next.js Initial Migration (#1505)
jonkafton Sep 3, 2024
a122b41
Fix linting on nextjs branch (#1509)
ChristopherChudzicki Sep 3, 2024
23e17b0
Fixes for successful build (#1516)
jonkafton Sep 4, 2024
a10352b
Migrate Storybook for Next.js (#1525)
jonkafton Sep 9, 2024
5b0fb81
[NextJS] fix frontend tests outside of `main` workspace (#1527)
ChristopherChudzicki Sep 9, 2024
429430f
[NextJS] Local docker setup (#1538)
ChristopherChudzicki Sep 11, 2024
b863a6d
fix carousel initial positioning (#1546)
ChristopherChudzicki Sep 11, 2024
83bae39
[NextJS] Fix tests, re-enable on CI (#1560)
ChristopherChudzicki Sep 16, 2024
9bab4f4
Dockerfile for the Next.js frontend and Action to build and publish (…
jonkafton Sep 16, 2024
bf9adfb
set single react types resolution (#1586)
ChristopherChudzicki Sep 19, 2024
e05da23
Reinstate head metadata (#1572)
shanbady Sep 20, 2024
5221a9f
[NextJS] Load correct font and a few other global things (#1583)
ChristopherChudzicki Sep 20, 2024
fc4caf8
CI to push to Heroku (#1569)
jonkafton Sep 23, 2024
a7041ef
[NextJS] Make noindex tag opt-out (like main) rather than opt-in (#1592)
ChristopherChudzicki Sep 23, 2024
cbc80b0
[NextJS] configure query client like on `main` (#1591)
ChristopherChudzicki Sep 23, 2024
f2124ed
Migrate useMediaQuery hooks (#1563)
jonkafton Sep 23, 2024
e6791ff
Fix homepage image hydration errors (#1605)
jonkafton Sep 25, 2024
7d2de23
Merge latest from main (#1602)
jonkafton Sep 25, 2024
78d2385
adding env vars (#1609)
shanbady Sep 27, 2024
8d2a220
Add error handling (#1613)
abeglova Sep 30, 2024
682d111
Migrate remaining images to Next.js (#1614)
jonkafton Sep 30, 2024
94c8816
Restore nextjs main workspace tests (#1639)
ChristopherChudzicki Oct 2, 2024
b7e25c9
Adds PostHog back into the NextJS build (#1644)
jkachel Oct 3, 2024
c8696de
resolve merge conflicts
ChristopherChudzicki Oct 3, 2024
9deded5
Various post-merge bug fixes:
ChristopherChudzicki Oct 7, 2024
becbeb4
Merge pull request #1657 from mitodl/cc/nextjs-w-main
ChristopherChudzicki Oct 7, 2024
c905053
Merge branch 'main' into shanbady/next-w-main
shanbady Oct 8, 2024
dfee612
adding new og-image
shanbady Oct 8, 2024
6fae1b6
Merge pull request #1663 from mitodl/shanbady/next-w-main
shanbady Oct 8, 2024
998d6ca
Merge branch 'main' into shanbady/nextjs-merge-main
shanbady Oct 8, 2024
2e242af
Next.js Migration Bug Fixes (#1626)
jonkafton Oct 8, 2024
7102e66
Merge pull request #1664 from mitodl/shanbady/nextjs-merge-main
shanbady Oct 8, 2024
f7a3882
switch search page to dynamic render
ChristopherChudzicki Oct 9, 2024
4462b88
Merge pull request #1670 from mitodl/cc/search-hydration
ChristopherChudzicki Oct 9, 2024
efee617
fix metadata baseurl
ChristopherChudzicki Oct 9, 2024
50c13dd
bump course search utils
ChristopherChudzicki Oct 9, 2024
aad7d51
fix tests
ChristopherChudzicki Oct 9, 2024
560da8b
Merge pull request #1672 from mitodl/cc/bump-course-search-utils
ChristopherChudzicki Oct 10, 2024
8b03d4f
Merge pull request #1671 from mitodl/cc/nextjs-metadatabaseurl
ChristopherChudzicki Oct 10, 2024
e0efafd
Positioning for search utils input close button (#1617)
jonkafton Oct 10, 2024
cad729a
Make metadataBase apply to all pages, not just homepage (#1677)
ChristopherChudzicki Oct 10, 2024
e5deffa
fix spacing issues on nextjs branch (#1685)
gumaerc Oct 11, 2024
5dc49fe
Merge branch 'main' into nextjs-20241011
jonkafton Oct 14, 2024
05203e1
Fix search page history stack (#1680)
ChristopherChudzicki Oct 15, 2024
610a7a3
Handle 404 errors from API during server render (#1678)
jonkafton Oct 15, 2024
1676e2a
Reinstate background steps image
jonkafton Oct 15, 2024
f0211ef
Merge `main` into `nextjs` (#1687)
jonkafton Oct 15, 2024
885f40c
restoring up and down chevrons (#1690)
shanbady Oct 16, 2024
50e17e1
exclude topics with no associated channel from Topic querySets (#1693)
gumaerc Oct 16, 2024
984eacb
search facet accessibility fixes (#1698)
gumaerc Oct 16, 2024
cffa89d
Shanbady/xpro logo for all xpro offerings (#1695)
shanbady Oct 16, 2024
7ddee60
Shanbady/improve bookmark button label (#1699)
shanbady Oct 16, 2024
00976e7
Config to set cache control headers (#1700)
jonkafton Oct 17, 2024
f404746
Update dependency @ckeditor/ckeditor5-dev-translations to v43 (#1551)
renovate[bot] Oct 17, 2024
0fd7185
Copy yarn releases to the Docker container (fixes build) (#1703)
jonkafton Oct 17, 2024
7eba43c
Update dependency @ckeditor/ckeditor5-dev-utils to v43 (#1552)
renovate[bot] Oct 17, 2024
251ca07
NextJS - re-enable program letter tests (#1696)
shanbady Oct 17, 2024
85d46d5
remove unnecessary webpack customizations (#1704)
ChristopherChudzicki Oct 17, 2024
10176b7
Update dependency @ckeditor/ckeditor5-react to v9 (#1532)
renovate[bot] Oct 17, 2024
861c127
Increase cache duration (#1705)
jonkafton Oct 17, 2024
3ab1467
Prod deployment. Add Posthog vars
jonkafton Oct 17, 2024
2d308c5
NextJS Sentry Integration (#1701)
ChristopherChudzicki Oct 17, 2024
12f65ef
synonyms in analyzer (#1697)
abeglova Oct 17, 2024
1ee88b0
Merge remote-tracking branch 'origin/nextjs-20241011' into HEAD
ChristopherChudzicki Oct 18, 2024
01c4946
restoring up and down chevrons (#1690)
shanbady Oct 16, 2024
bbcdf0a
Config to set cache control headers (#1700)
jonkafton Oct 17, 2024
580f0f9
Copy yarn releases to the Docker container (fixes build) (#1703)
jonkafton Oct 17, 2024
8af4e53
NextJS - re-enable program letter tests (#1696)
shanbady Oct 17, 2024
44dc6f2
remove unnecessary webpack customizations (#1704)
ChristopherChudzicki Oct 17, 2024
a798b5c
Increase cache duration (#1705)
jonkafton Oct 17, 2024
6ffc127
NextJS Sentry Integration (#1701)
ChristopherChudzicki Oct 17, 2024
1cfd475
Merge branch 'nextjs' into jk/5738-ci-config-nextjs-prod
jonkafton Oct 18, 2024
8b6dde9
Appzi env vars and Sentry config
jonkafton Oct 18, 2024
e614768
Merge remote-tracking branch 'origin/main' into nextjs-merge-20241018
ChristopherChudzicki Oct 18, 2024
dd03951
Merge branch 'nextjs' into jk/5738-ci-config-nextjs-prod
jonkafton Oct 18, 2024
95c852d
Merge pull request #1710 from mitodl/nextjs-merge-20241018
ChristopherChudzicki Oct 18, 2024
b4f7d9b
Move deploy jobs to respective workflow. Docker build for dry run
jonkafton Oct 18, 2024
c4f01aa
Merge branch 'nextjs' into jk/5738-ci-config-nextjs-prod
jonkafton Oct 18, 2024
74d9f9e
Capture the search_update event after making the adjustments to searc…
jkachel Oct 18, 2024
6e1277a
Reinstate backend release steps
jonkafton Oct 21, 2024
5d1b628
fix textarea placeholder color (#1712)
ChristopherChudzicki Oct 21, 2024
a14eefe
Merge branch 'main' into nextjs-20241021
jonkafton Oct 21, 2024
d943275
Remove unnecessary Heroku vars
jonkafton Oct 21, 2024
8c879a9
Merge pull request #1718 from mitodl/nextjs-20241021
jonkafton Oct 21, 2024
783f3d3
Fixed issue with full name not being pulled in (#1682)
rhysyngsun Oct 21, 2024
0c5a8b4
Read Sentry rates from the Actions secrets
jonkafton Oct 21, 2024
99c8f7f
Update actions/setup-node digest to 0a44ba7 (#1623)
renovate[bot] Oct 21, 2024
6965103
Merge pull request #1706 from mitodl/jk/5738-ci-config-nextjs-prod
jonkafton Oct 21, 2024
619f8ca
Merge branch 'main' into nextjs-20241021-2
jonkafton Oct 21, 2024
1f923ba
Update ckeditor monorepo to v43 (major) (#1204)
renovate[bot] Oct 21, 2024
ede73e3
bundle analyzer, fix search page + channel page JS sizes (#1707)
ChristopherChudzicki Oct 21, 2024
4e3d26f
Merge branch 'main' into nextjs-20241021-2
jonkafton Oct 21, 2024
16c12eb
Merge branch 'nextjs' into nextjs-20241021-2
jonkafton Oct 21, 2024
82fc5c0
Merge pull request #1720 from mitodl/nextjs-20241021-2
jonkafton Oct 21, 2024
3f58d8b
Migration to Next.js - Merge pull request #1717 from mitodl/nextjs
jonkafton Oct 22, 2024
9c0705a
Update for Storybook's new home in ol-components (#1721)
jonkafton Oct 22, 2024
49f25f7
Fix path to Storybook build (#1722)
jonkafton Oct 22, 2024
983e248
Revert "Fixed issue with full name not being pulled in (#1682)" (#1723)
rhysyngsun Oct 22, 2024
a708896
Release 0.23.0
odlbot Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
80 changes: 63 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: "^20"
cache: yarn
Expand All @@ -123,14 +123,20 @@ jobs:
- name: Style lint
run: yarn run style-lint

- name: Webpack build
run: yarn run build
env:
MITOL_API_BASE_URL: https://api.mitlearn-test.odl.mit.edu

- name: Lints
run: yarn run lint-check

- name: Build Next.js frontend
run: yarn workspace main build
env:
NODE_ENV: production
NEXT_PUBLIC_ORIGIN: https://ci.learn.mit.edu
NEXT_PUBLIC_MITOL_API_BASE_URL: https://api.ci.learn.mit.edu
NEXT_PUBLIC_CSRF_COOKIE_NAME: cookie-monster
NEXT_PUBLIC_SITE_NAME: MIT Learn
NEXT_PUBLIC_MITOL_SUPPORT_EMAIL: [email protected]
# do this before typecheck. See https://github.com/vercel/next.js/issues/53959#issuecomment-1735563224

- name: Typecheck
run: yarn run typecheck

Expand All @@ -144,24 +150,64 @@ jobs:
CODECOV: true
NODE_ENV: test

- name: Upload frontend build
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
with:
name: frontend-build
path: frontends/mit-learn/build

- name: Upload coverage to CodeCov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
file: coverage/lcov.info

build-nextjs-container:
needs: javascript-tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Build the Docker image
env:
ORIGIN: https://next.rc.learn.mit.edu
MITOL_API_BASE_URL: https://api.rc.learn.mit.edu
SITE_NAME: MIT Learn
SUPPORT_EMAIL: [email protected]
EMBEDLY_KEY: ${{ secrets.EMBEDLY_KEY_RC }}
MITOL_AXIOS_WITH_CREDENTIALS: true
CSRF_COOKIE_NAME: ${{ secrets.CSRF_COOKIE_NAME_RC }}
POSTHOG_API_HOST: https://app.posthog.com
POSTHOG_PROJECT_ID: ${{ secrets.POSTHOG_PROJECT_ID_RC }}
POSTHOG_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY_RC }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN_RC }}
SENTRY_ENV: ${{ secrets.MITOL_ENVIRONMENT_RC }}
SENTRY_PROFILES_SAMPLE_RATE: ${{ secrets.SENTRY_PROFILES_SAMPLE_RATE_RC }}
SENTRY_TRACES_SAMPLE_RATE: ${{ secrets.SENTRY_TRACES_SAMPLE_RATE_RC }}
APPZI_URL: ${{ secrets.APPZI_URL_RC }}
VERSION: ${{ github.sha }}
run: |
docker build \
-f frontends/main/Dockerfile.web \
--build-arg NEXT_PUBLIC_ORIGIN=$ORIGIN \
--build-arg NEXT_PUBLIC_MITOL_API_BASE_URL=$MITOL_API_BASE_URL \
--build-arg NEXT_PUBLIC_SITE_NAME="$SITE_NAME" \
--build-arg NEXT_PUBLIC_MITOL_SUPPORT_EMAIL=$SUPPORT_EMAIL \
--build-arg NEXT_PUBLIC_EMBEDLY_KEY=$EMBEDLY_KEY \
--build-arg NEXT_PUBLIC_MITOL_AXIOS_WITH_CREDENTIALS=$MITOL_AXIOS_WITH_CREDENTIALS \
--build-arg NEXT_PUBLIC_CSRF_COOKIE_NAME=$CSRF_COOKIE_NAME \
--build-arg NEXT_PUBLIC_POSTHOG_API_HOST=$POSTHOG_API_HOST \
--build-arg NEXT_PUBLIC_POSTHOG_PROJECT_ID=$POSTHOG_PROJECT_ID \
--build-arg NEXT_PUBLIC_POSTHOG_API_KEY=$POSTHOG_API_KEY \
--build-arg NEXT_PUBLIC_SENTRY_DSN=$SENTRY_DSN \
--build-arg NEXT_PUBLIC_SENTRY_ENV=$SENTRY_ENV \
--build-arg NEXT_PUBLIC_SENTRY_PROFILES_SAMPLE_RATE=$SENTRY_PROFILES_SAMPLE_RATE \
--build-arg NEXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE=$SENTRY_TRACES_SAMPLE_RATE \
--build-arg NEXT_PUBLIC_APPZI_URL=$APPZI_URL \
--build-arg NEXT_PUBLIC_VERSION=$VERSION \
-t mitodl/mit-learn-frontend:$VERSION .

build-storybook:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: "^20"
cache: yarn
Expand All @@ -171,7 +217,7 @@ jobs:
run: yarn install

- name: Build Storybook
run: yarn workspace mit-learn build-storybook
run: yarn workspace ol-components build-storybook

openapi-generated-client-check-v0:
# This job checks that the output of openapi-generator-typescript-axios that
Expand All @@ -184,7 +230,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: "^20"
cache: yarn
Expand Down Expand Up @@ -223,7 +269,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: "^20"
cache: yarn
Expand Down Expand Up @@ -259,7 +305,7 @@ jobs:
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: "^20"
cache: yarn
Expand Down
96 changes: 55 additions & 41 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,64 +19,78 @@ jobs:
with:
ref: release

- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: "^20"
cache: yarn
cache-dependency-path: yarn.lock
- name: Set VERSION
run: echo "VERSION=$(./scripts/get_version.sh)" >> $GITHUB_ENV

- name: Setup environment
run: sudo apt-get install libelf1
- name: Write commit SHA to file
run: echo $GITHUB_SHA > frontends/main/public/hash.txt

- name: Install frontend dependencies
run: yarn install --immutable
- name: Heroku login
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:login

- name: Set VERSION
run: echo "VERSION=$(./scripts/get_version.sh)" >> $GITHUB_ENV
- name: Release Backend on Heroku
uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: mitopen-production
heroku_email: ${{ secrets.HEROKU_EMAIL }}
branch: release

- name: Build frontend
run: NODE_ENV=production yarn build
- name: Build and push the Docker image
env:
HEROKU_APP_NAME: mitopen-production-nextjs
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
ORIGIN: https://learn.mit.edu
MITOL_API_BASE_URL: https://api.learn.mit.edu
SITE_NAME: MIT Learn
SUPPORT_EMAIL: [email protected]
EMBEDLY_KEY: ${{ secrets.EMBEDLY_KEY_PROD }}
POSTHOG_ENABLED: true
MITOL_AXIOS_WITH_CREDENTIALS: true
CSRF_COOKIE_NAME: ${{ secrets.CSRF_COOKIE_NAME_PROD }}
POSTHOG_API_HOST: https://app.posthog.com
POSTHOG_TIMEOUT_MS: 1000
POSTHOG_PROJECT_ID: ${{ secrets.POSTHOG_PROJECT_ID_PROD }}
POSTHOG_PROJECT_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY_PROD }}
POSTHOG_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY_PROD }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN_PROD }}
SENTRY_ENV: ${{ secrets.MITOL_ENVIRONMENT_PROD }}
SENTRY_PROFILES_SAMPLE_RATE: ${{ secrets.SENTRY_PROFILES_SAMPLE_RATE_PROD }}
SENTRY_TRACES_SAMPLE_RATE: ${{ secrets.SENTRY_TRACES_SAMPLE_RATE_PROD }}
APPZI_URL: ${{ secrets.APPZI_URL_PROD }}
CSRF_COOKIE_NAME: ${{ secrets.CSRF_COOKIE_NAME_PROD }}
MITOL_AXIOS_WITH_CREDENTIALS: true
MITOL_API_BASE_URL: https://api.learn.mit.edu
MITOL_SUPPORT_EMAIL: [email protected]

- uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: "mitopen-production"
heroku_email: ${{ secrets.HEROKU_EMAIL }}
branch: release
VERSION: ${{ github.sha }}
run: |
heroku container:push web \
--app $HEROKU_APP_NAME \
--recursive \
--arg NEXT_PUBLIC_ORIGIN=$ORIGIN,\
NEXT_PUBLIC_MITOL_API_BASE_URL=$MITOL_API_BASE_URL,\
NEXT_PUBLIC_SITE_NAME="$SITE_NAME",\
NEXT_PUBLIC_MITOL_SUPPORT_EMAIL=$SUPPORT_EMAIL,\
NEXT_PUBLIC_EMBEDLY_KEY=$EMBEDLY_KEY,\
NEXT_PUBLIC_MITOL_AXIOS_WITH_CREDENTIALS=$MITOL_AXIOS_WITH_CREDENTIALS,\
NEXT_PUBLIC_CSRF_COOKIE_NAME=$CSRF_COOKIE_NAME,\
NEXT_PUBLIC_POSTHOG_API_HOST=$POSTHOG_API_HOST,\
NEXT_PUBLIC_POSTHOG_PROJECT_ID=$POSTHOG_PROJECT_ID,\
NEXT_PUBLIC_POSTHOG_API_KEY=$POSTHOG_API_KEY,\
NEXT_PUBLIC_SENTRY_DSN=$SENTRY_DSN,\
NEXT_PUBLIC_SENTRY_ENV=$SENTRY_ENV,\
NEXT_PUBLIC_SENTRY_PROFILES_SAMPLE_RATE=$SENTRY_PROFILES_SAMPLE_RATE,\
NEXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE=$SENTRY_TRACES_SAMPLE_RATE,\
NEXT_PUBLIC_APPZI_URL=$APPZI_URL,\
NEXT_PUBLIC_VERSION=$VERSION \
--context-path .

- name: Write commit SHA to file
run: echo $GITHUB_SHA > frontends/mit-learn/build/static/hash.txt

- name: Upload frontend build to s3
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
- name: Release Frontend on Heroku
env:
AWS_S3_BUCKET: ol-mitlearn-app-storage-production
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_PROD }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_PROD }}
SOURCE_DIR: "frontends/mit-learn/build" # optional: defaults to entire repository
DEST_DIR: "frontend" # This dir will get cluttered but it is okay for now
HEROKU_APP_NAME: mitopen-production-nextjs
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:release --app $HEROKU_APP_NAME web

- name: Purge Fastly cache
uses: jcoene/fastly-purge-action@master
with:
api_key: "${{ secrets.FASTLY_API_KEY_PROD }}"
service_id: "${{ secrets.FASTLY_SERVICE_ID_PROD }}"
api_key: "${{ secrets.FASTLY_API_KEY_PROD_NEXTJS }}"
service_id: "${{ secrets.FASTLY_SERVICE_ID_PROD_NEXTJS }}"

# runs ONLY on a failure of the CI workflow
on-failure:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Publish Storybook

on:
# Runs on pushes targeting the default branch
push:
Expand All @@ -13,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: "^20"
cache: yarn
Expand All @@ -23,12 +25,12 @@ jobs:
run: yarn install

- name: Build Storybook
run: yarn workspace mit-learn build-storybook
run: yarn workspace ol-components build-storybook

- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: ./frontends/mit-learn/storybook-static
path: ./frontends/ol-components/storybook-static

deploy:
needs: build
Expand Down
Loading
Loading