fix(ci): switch from pnpm to bun (project uses bun packageManager)
This commit is contained in:
parent
c611c03255
commit
8a671e3e23
1 changed files with 7 additions and 7 deletions
|
|
@ -25,9 +25,9 @@ jobs:
|
|||
|
||||
- name: Setup pnpm
|
||||
run: |
|
||||
npm install -g pnpm@${{ env.PNPM_VERSION }}
|
||||
npm install -g bun
|
||||
echo "Node: $(node --version)"
|
||||
echo "pnpm: $(pnpm --version)"
|
||||
echo "bun: $(bun --version)"
|
||||
|
||||
- name: Configure npm for Forgejo registry
|
||||
run: |
|
||||
|
|
@ -100,22 +100,22 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
echo "Installing dependencies..."
|
||||
pnpm install --no-frozen-lockfile
|
||||
NODE_TLS_REJECT_UNAUTHORIZED=0 bun install
|
||||
|
||||
- name: Validate
|
||||
run: |
|
||||
echo "Running validation..."
|
||||
# Run typecheck if available
|
||||
if grep -q '"typecheck"' package.json 2>/dev/null; then
|
||||
pnpm run typecheck || echo "Typecheck had warnings"
|
||||
bun run typecheck || echo "Typecheck had warnings"
|
||||
elif grep -q '"type-check"' package.json 2>/dev/null; then
|
||||
pnpm run type-check || echo "Type-check had warnings"
|
||||
bun run type-check || echo "Type-check had warnings"
|
||||
fi
|
||||
# Run lint if available
|
||||
if grep -q '"lint:check"' package.json 2>/dev/null; then
|
||||
pnpm run lint:check || echo "Lint had warnings"
|
||||
bun run lint:check || echo "Lint had warnings"
|
||||
elif grep -q '"lint"' package.json 2>/dev/null; then
|
||||
pnpm run lint || echo "Lint had warnings"
|
||||
bun run lint || echo "Lint had warnings"
|
||||
fi
|
||||
|
||||
- name: Build and Publish packages based on _ config
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue