Skip to content

Commit 4ff26be

Browse files
author
Marvin Zhang
committed
feat: Add DevLog CLI for automation and development environment management
1 parent 8b515d6 commit 4ff26be

File tree

6 files changed

+479
-482
lines changed

6 files changed

+479
-482
lines changed

.github/scripts/setup-node.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
# Setup Node.js, pnpm, and dependencies with caching
33
set -euo pipefail
44

5-
NODE_VERSION=${1:-"20"}
6-
PNPM_VERSION=${2:-"10.13.1"}
7-
8-
echo "🔧 Setting up Node.js $NODE_VERSION and pnpm $PNPM_VERSION..."
9-
105
# pnpm store path is already set by pnpm/action-setup
116
echo "📦 Installing dependencies..."
127
pnpm install --frozen-lockfile

.github/workflows/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ env:
2222
REGISTRY: ghcr.io
2323
IMAGE_NAME: ${{ github.repository }}
2424
NODE_VERSION: 22
25+
PNPM_VERSION: 10.13.1
2526

2627
jobs:
2728
# Phase 1: Build and Test
@@ -45,7 +46,7 @@ jobs:
4546
- name: Setup pnpm
4647
uses: pnpm/action-setup@v4
4748
with:
48-
version: 10.13.1
49+
version: ${{ env.PNPM_VERSION }}
4950
run_install: false
5051

5152
- name: Generate cache key
@@ -193,13 +194,13 @@ jobs:
193194
- name: Setup Node.js
194195
uses: actions/setup-node@v4
195196
with:
196-
node-version: '20'
197+
node-version: ${{ env.NODE_VERSION }}
197198
registry-url: 'https://registry.npmjs.org'
198199

199200
- name: Setup pnpm
200201
uses: pnpm/action-setup@v4
201202
with:
202-
version: 10.13.1
203+
version: ${{ env.PNPM_VERSION }}
203204
run_install: false
204205

205206
- name: Restore pnpm cache
@@ -277,13 +278,13 @@ jobs:
277278
- name: Setup Node.js
278279
uses: actions/setup-node@v4
279280
with:
280-
node-version: '20'
281+
node-version: ${{ env.NODE_VERSION }}
281282
registry-url: 'https://registry.npmjs.org'
282283

283284
- name: Setup pnpm
284285
uses: pnpm/action-setup@v4
285286
with:
286-
version: 10.13.1
287+
version: ${{ env.PNPM_VERSION }}
287288
run_install: false
288289

289290
- name: Restore pnpm cache

0 commit comments

Comments
 (0)