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

dev: standardize internal package manager to bun #1577

Open
wants to merge 31 commits into
base: dms/test-build-11
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
9 changes: 6 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ runs:
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org
cache: yarn
dschlabach marked this conversation as resolved.
Show resolved Hide resolved

- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.26

# For provenance https://docs.npmjs.com/generating-provenance-statements#prerequisites
- name: Install npm 9.5
run: npm install -g npm@^9.5.0
shell: bash

- name: Install node modules
run: yarn install --frozen-lockfile
shell: bash
run: bun install --frozen-lockfile
shell: bash
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.26

- name: Kit Install dependencies
run: npm install
run: bun install

- name: Kit Test Build
# When fails, please check your build
run: |
npm run build
bun run build
2 changes: 1 addition & 1 deletion .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Build
shell: bash
run: yarn build
run: bun run build

- name: Set deployment token
run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.26

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Kit Install dependencies
run: npm install
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.26

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Kit Install dependencies
run: npm install
run: bun install

- name: Kit Format
run: npm run ci:format
run: bun run ci:format
10 changes: 7 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.26

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Kit Install dependencies
run: npm install
run: bun install

- name: Kit Lint
run: npm run ci:lint
run: bun run ci:lint
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Build
shell: bash
run: yarn build
run: bun run build

- name: Set deployment token
run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
Expand All @@ -39,8 +39,8 @@ jobs:
with:
title: 'chore: version packages 🔖'
commit: 'chore: version packages 🔖'
publish: yarn release:publish
version: yarn release:version
publish: bun release:publish
version: bun release:version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 9 additions & 4 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Site Build
on:
push:
branches: ['main']
branches: ['dms/bun']
pull_request:
branches: ['main']
jobs:
Expand All @@ -19,13 +19,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'


- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.26

- name: Site Install dependencies
working-directory: ./site
run: yarn install
run: bun install

- name: Site Test Build
working-directory: ./site
run: |
yarn run build
bun run build
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.26

- name: Kit Install dependencies
run: |
yarn install
cd ./framegear && yarn install && cd ..
bun install
cd ./framegear && bun install && cd ..
- name: Kit Test
# When fails, please check your tests
run: yarn test:coverage
run: bun test:coverage
Loading
Loading