Skip to content

Commit

Permalink
chore: update CI workflows to use Node.js and PNPM
Browse files Browse the repository at this point in the history
- Replaced Bun setup with Node.js environment setup in push-api.yml.
- Updated dependency installation from Bun to PNPM for consistency.
- Added environment variables for PNPM and Node.js versions in both workflows.
- Renamed release workflow for clarity.
  • Loading branch information
Stormix committed Dec 27, 2024
1 parent 62c8838 commit d4f0187
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/push-api.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Publish API Docker image
env:
PNPM_VERSION: "9.15.0"
NODE_VERSION: "22.11.0"

on:
workflow_dispatch:
Expand All @@ -22,16 +25,18 @@ jobs:
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_KEY }}
- uses: oven-sh/setup-bun@v2
name: Setup bun
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
bun-version: latest
- uses: fregante/setup-git-user@v2
name: Setup git user
node-version: ${{ env.NODE_VERSION }}
cache-dependency-path: pnpm-lock.yaml
- uses: pnpm/action-setup@v2.0.1
with:
version: ${{ env.PNPM_VERSION }}
- name: Install dependencies
working-directory: ./apps/api
run: |
bun install
pnpm install
- name: Read version from package.json
id: get_version
working-directory: ./apps/api
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "release"
name: Release Desktop App
env:
PNPM_VERSION: "9.15.0"
NODE_VERSION: "22.11.0"
Expand Down

0 comments on commit d4f0187

Please sign in to comment.