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

feat: goodbye node, hello bun #827

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- name: Install and Build 🔧
run: |
cd blog-website
yarn install --frozen-lockfile
DOCUSAURUS_SSR_CONCURRENCY=5 yarn run build
bun install
DOCUSAURUS_SSR_CONCURRENCY=5 bun run build

- name: Publish to GitHub Pages 🗞️
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/build-and-deploy-static-web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ jobs:

echo "PREVIEW_URL=$PREVIEW_URL" >> $GITHUB_OUTPUT

- name: Setup Node.js 🔧
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
# - name: Setup Node.js 🔧
# uses: actions/setup-node@v4
# with:
# node-version: '18'
# cache: 'yarn'

- name: Setup bun 🔧
uses: oven-sh/setup-bun@v1
Expand All @@ -163,10 +163,16 @@ jobs:
- name: Install and build site 🔧
run: |
cd blog-website
yarn install --frozen-lockfile
DOCUSAURUS_SSR_CONCURRENCY=5 IS_LIVE_SITE=${{ github.event_name != 'pull_request' }} yarn run build
bun install
DOCUSAURUS_SSR_CONCURRENCY=5 IS_LIVE_SITE=${{ github.event_name != 'pull_request' }} bun run build
cp staticwebapp.config.json build/staticwebapp.config.json

- name: Install and build api 🔧
run: |
cd blog-website/api
bun install
bun run build

- name: Get API key 🔑
id: static_web_app_apikey
uses: azure/CLI@v1
Expand All @@ -183,8 +189,9 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: 'upload'
skip_app_build: true
skip_api_build: true
app_location: '/blog-website/build' # App source code path
api_location: '/blog-website/api' # Api source code path - optional
api_location: '/blog-website/api' # Api source code path

outputs:
preview-url: ${{steps.static_web_app_preview_url.outputs.PREVIEW_URL}}
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/build-test-docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
# Default: 1
fetch-depth: 0

- name: Setup Node.js 🔧
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
# - name: Setup Node.js 🔧
# uses: actions/setup-node@v4
# with:
# node-version: '18'
# cache: 'yarn'

- name: Setup bun 🔧
uses: oven-sh/setup-bun@v1
Expand All @@ -37,11 +37,5 @@ jobs:
- name: Docusaurus build 🦕
run: |
cd blog-website
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
DOCUSAURUS_SSR_CONCURRENCY=5 npm run build
bun install
DOCUSAURUS_SSR_CONCURRENCY=5 bun run build
Loading