Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/release-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ jobs:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
cache-dependency-path: node/package-lock.json
node-version: 24
package-manager-cache: false

- name: Install dependencies
run: npm ci
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,26 @@ jobs:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
cache-dependency-path: node/package-lock.json
registry-url: https://registry.npmjs.org
node-version: 24
package-manager-cache: false

- name: Install dependencies
run: npm ci

- name: Run tests if present
run: npm run test --if-present

- name: Prepare npm for trusted publishing
run: |
rm -f "${NPM_CONFIG_USERCONFIG:-$HOME/.npmrc}"
cat <<'EOF' > "$HOME/.npmrc"
registry=https://registry.npmjs.org/
EOF
echo "NPM_CONFIG_USERCONFIG=$HOME/.npmrc" >> "$GITHUB_ENV"
echo "NODE_AUTH_TOKEN=" >> "$GITHUB_ENV"

- name: Create release PR or publish
uses: changesets/action@v1
with:
Expand All @@ -46,3 +53,4 @@ jobs:
commit: Release @cluic/codex-remote-proxy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ""
Loading