-
Notifications
You must be signed in to change notification settings - Fork 7
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
11 changed files
with
41 additions
and
19,272 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 |
---|---|---|
@@ -1,20 +1,13 @@ | ||
# .github/actions/setup-node/action.yml | ||
name: 'install workspace' | ||
description: 'Set up Node.js environment and check out code' | ||
inputs: | ||
node-version-file: | ||
description: 'Path to Node version file' | ||
default: '.nvmrc' | ||
description: 'Set up Bun and install packages' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: setup node | ||
uses: actions/setup-node@v4 | ||
- uses: oven-sh/setup-bun@v1 | ||
with: | ||
node-version-file: ${{ inputs.node-version-file }} | ||
cache: 'npm' | ||
cache-dependency-path: 'package-lock.json' | ||
bun-version: latest | ||
|
||
- name: npm ci | ||
run: npm ci --audit=false --fund=false | ||
- name: bun install | ||
run: bun install --silent | ||
shell: bash |
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
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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
FROM node:21-alpine | ||
FROM oven/bun:1 | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY . ./ | ||
|
||
RUN npm ci | ||
|
||
RUN npx nx run-many -t build -p koa-server react-app | ||
RUN bun install --silent | ||
RUN bunx nx run-many -t build -p koa-server react-app | ||
|
||
ENV PORT=8080 | ||
EXPOSE 8080 | ||
CMD ["node", "./apps/koa-server/dist/server.js"] | ||
CMD ["bun", "./apps/koa-server/dist/server.js"] |
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.