|
| 1 | +# GitHub Workflow Updates Required |
| 2 | + |
| 3 | +Due to OAuth token scope limitations, the following workflow files need to be updated manually to complete the Bun to Node.js migration: |
| 4 | + |
| 5 | +## Files to Update |
| 6 | + |
| 7 | +### 1. `.github/workflows/format-check.yml` |
| 8 | + |
| 9 | +Replace the Bun setup and commands with Node.js: |
| 10 | + |
| 11 | +```yaml |
| 12 | +# Replace lines 19-37 with: |
| 13 | + - name: Setup Node.js |
| 14 | + uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 |
| 15 | + with: |
| 16 | + node-version: "22" |
| 17 | + cache: "npm" |
| 18 | + |
| 19 | + - name: Install dependencies |
| 20 | + run: npm ci |
| 21 | + |
| 22 | + - name: Check formatting |
| 23 | + run: npm run format:check |
| 24 | + |
| 25 | + - name: Check if files would change |
| 26 | + run: | |
| 27 | + if ! git diff --exit-code; then |
| 28 | + echo "❌ Files are not properly formatted. Run 'npm run format' to fix." |
| 29 | + exit 1 |
| 30 | + else |
| 31 | + echo "✅ All files are properly formatted." |
| 32 | + fi |
| 33 | +``` |
| 34 | +
|
| 35 | +### 2. `.github/workflows/release.yml` |
| 36 | + |
| 37 | +Replace the Bun setup with Node.js: |
| 38 | + |
| 39 | +```yaml |
| 40 | +# Replace lines 23-29 with: |
| 41 | + - name: Setup Node.js |
| 42 | + uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 |
| 43 | + with: |
| 44 | + node-version: "22" |
| 45 | + cache: "npm" |
| 46 | +
|
| 47 | + - name: Install dependencies |
| 48 | + run: npm ci |
| 49 | +``` |
| 50 | + |
| 51 | +## How to Apply |
| 52 | + |
| 53 | +You can apply these changes by: |
| 54 | + |
| 55 | +1. Manually editing the files in the GitHub web interface |
| 56 | +2. Using a local git client with proper credentials |
| 57 | +3. Applying the staged changes from this branch (they're already prepared) |
| 58 | + |
| 59 | +## Verification |
| 60 | + |
| 61 | +After updating, the workflows should: |
| 62 | +- Use Node.js 22 instead of Bun |
| 63 | +- Use `npm ci` for installing dependencies |
| 64 | +- Use `npm run` for running scripts |
| 65 | +- Reference npm commands in error messages |
| 66 | + |
0 commit comments