-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* force * force * feat(signal/server-context): ServerContext * feat(signal/server-context): ServerContext * release: %s - @gecut/[email protected] * feat(workflows): rewrite with bun * feat(workflows): rewrite with bun * fix(utilities/debounce): change types
- Loading branch information
1 parent
913f9b0
commit be154a4
Showing
24 changed files
with
102 additions
and
8,655 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,6 +1,6 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
|
||
name: Build & Lint | ||
name: Build & Lint (Bun FTW! ) | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -17,7 +17,7 @@ env: | |
|
||
jobs: | ||
build-lint-ts: | ||
name: Build & Lint Typescript | ||
name: Build & Lint Typescript (Bun Style ) | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
|
@@ -27,32 +27,14 @@ jobs: | |
- name: ⤵️ Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: 🏗 Setup nodejs | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- name: Install Bun | ||
uses: oven-sh/setup-bun@v1 # Install Bun for our workflow | ||
|
||
- name: 🏗 Setup nodejs corepack | ||
run: corepack enable | ||
- name: Install dependencies | ||
run: bun install # Use Bun's package manager | ||
|
||
- name: 🏗 Get yarn config | ||
id: yarn_config | ||
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
- name: Build Typescript | ||
run: bun run build # Leverage Bun's built-in build functionality | ||
|
||
- name: 🏗 Cache Layer | ||
uses: actions/[email protected] | ||
# id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn_config.outputs.cache_folder }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: 🏗 Install dependencies | ||
run: yarn install --immutable | ||
|
||
- name: 🚀 Build Typescript | ||
run: yarn build | ||
|
||
- name: 🚀 Run ESLint | ||
run: yarn lint | ||
- name: Run ESLint | ||
run: bun run lint # Execute ESLint using Bun's task runner (if applicable) |
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,6 +1,6 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
|
||
name: Publish NPM | ||
name: Publish with Bun | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -13,8 +13,8 @@ env: | |
NODE_VERSION: lts/* | ||
|
||
jobs: | ||
publish-npm: | ||
name: Publish NPM | ||
publish-with-bun: | ||
name: Publish with Bun | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
|
@@ -24,38 +24,21 @@ jobs: | |
- name: ⤵️ Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: 🏗 Setup nodejs | ||
- name: Setup Node.js (for Bun) | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: 🏗 Setup nodejs corepack | ||
run: corepack enable | ||
- name: Install Bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: 🏗 Get yarn config | ||
id: yarn_config | ||
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
- name: Install dependencies (Bun) | ||
run: bun install --frozen | ||
|
||
- name: 🏗 Cache Layer | ||
uses: actions/[email protected] | ||
# id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn_config.outputs.cache_folder }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: 🏗 Install dependencies | ||
run: yarn install --immutable | ||
|
||
- name: 🏗 Build Typescript | ||
run: yarn build | ||
|
||
# - name: 🚀 Extra Packages Build | ||
# run: yarn build:r | ||
- name: Build Typescript | ||
run: bun run build | ||
|
||
- name: 🚀 Publish | ||
run: yarn run publish --yes | ||
- name: Publish (with Bun) | ||
run: bun run publish --yes | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 was deleted.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"$schema": "https://unpkg.com/[email protected]/schemas/lerna-schema.json", | ||
"version": "independent", | ||
"npmClient": "yarn", | ||
"npmClient": "bun", | ||
"packages": ["packages/*", "demo"], | ||
"loglevel": "verbose", | ||
"command": { | ||
|
Oops, something went wrong.