Skip to content

Commit 071a8b7

Browse files
committed
fix(ci): publish workflow artifact paths and npm build
- build-npm: build agent and gui before npm pack; fix upload path (npm pack outputs to root, not build/) - publish: use working-directory for npm publish to avoid glob interpreted as git URL; fix CLI binary download paths (upload-artifact strips common prefix); remove coverage gate
1 parent 8e686c2 commit 071a8b7

2 files changed

Lines changed: 12 additions & 14 deletions

File tree

.github/workflows/build-npm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919

2020
- uses: ./.github/actions/setup
2121

22-
- name: Install dependencies
22+
- name: Install and build
2323
run: |
2424
npm ci
25-
cd agent && npm i && cd ..
26-
cd gui && npm i
25+
cd agent && npm i && npm run build && cd ..
26+
cd gui && npm i && npm run build
2727
2828
- name: Package
2929
run: npm pack
@@ -32,4 +32,4 @@ jobs:
3232
uses: actions/upload-artifact@v6
3333
with:
3434
name: igf.tgz
35-
path: build/igf-*.tgz
35+
path: igf-*.tgz

.github/workflows/publish.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ jobs:
1717
npm:
1818
uses: ./.github/workflows/build-npm.yml
1919

20-
coverage:
21-
uses: ./.github/workflows/coverage.yml
22-
2320
release:
24-
needs: [cli, npm, coverage]
21+
needs: [cli, npm]
2522
runs-on: ubuntu-latest
2623
if: startsWith(github.ref, 'refs/tags/v')
2724
steps:
@@ -44,19 +41,20 @@ jobs:
4441

4542
- name: Publish to npm
4643
if: ${{ !contains(github.ref, 'alpha') && !contains(github.ref, 'beta') }}
47-
run: npm publish npm/build/igf-*.tgz --provenance
44+
working-directory: npm
45+
run: npm publish igf-*.tgz --provenance
4846
env:
4947
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5048

5149
- name: Upload to GitHub Release
5250
uses: softprops/action-gh-release@v2
5351
with:
5452
files: |
55-
cli/build/Release/igf-linux-x64
56-
cli/build/Release/igf-windows-x64.exe
57-
cli/build/Release/igf-darwin-x64
58-
cli/build/Release/igf-darwin-arm64
59-
npm/build/igf-*.tgz
53+
cli/igf-linux-x64
54+
cli/igf-windows-x64.exe
55+
cli/igf-darwin-x64
56+
cli/igf-darwin-arm64
57+
npm/igf-*.tgz
6058
generate_release_notes: true
6159
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
6260
env:

0 commit comments

Comments
 (0)