Skip to content

Commit 61e9576

Browse files
nam-hleclaude
andauthored
chore: use nadle directly in CI instead of npx (#508)
## Summary - Add `node_modules/.bin` to `PATH` in the setup action - Replace `npx nadle` with `nadle` across all workflows (ci, release, release-any-commit) ## Test plan - [ ] Verify CI workflows pass with `nadle` invoked directly - [ ] Verify release workflow still works on tag push 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3e6e734 commit 61e9576

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/actions/setup/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ runs:
2323
- name: Install dependencies
2424
run: pnpm install
2525
shell: bash
26+
27+
- name: Add node_modules/.bin to PATH
28+
run: echo "${{ github.workspace }}/node_modules/.bin" >> "$GITHUB_PATH"
29+
shell: bash

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747

4848
- name: Check
4949
if: runner.os == 'Linux'
50-
run: npx nadle check
50+
run: nadle check
5151

5252
- name: Build
53-
run: npx nadle build
53+
run: nadle build
5454

5555
- name: Test
56-
run: npx nadle test --summary
56+
run: nadle test --summary
5757

5858
- name: Coverage
5959
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '22'

.github/workflows/release-any-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ jobs:
3535
- uses: ./.github/actions/setup
3636

3737
- name: Build
38-
run: npx nadle build
38+
run: nadle build
3939

4040
- run: pnpm dlx pkg-pr-new publish --bin --comment=update --exclude nadle-vscode './packages/*'

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ jobs:
2828

2929
- uses: ./.github/actions/setup
3030

31+
- name: Parse tag
32+
id: parse-tag
33+
run: echo "package=${GITHUB_REF_NAME%%/*}" >> "$GITHUB_OUTPUT"
34+
3135
- name: Build
32-
run: npx nadle build
36+
run: nadle build
3337

34-
- name: Release
35-
env:
36-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37-
run: |
38-
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" # pnpm config set is broken
39-
pnpm publish -r --no-git-checks --provenance
38+
- name: Publish to npm
39+
if: ${{ !startsWith(github.ref_name, 'nadle-vscode/') }}
40+
run: pnpm --filter "./packages/${{ steps.parse-tag.outputs.package }}" publish --no-git-checks --provenance
4041

4142
- name: Publish VS Code Extension
4243
if: startsWith(github.ref_name, 'nadle-vscode/')

0 commit comments

Comments
 (0)