Skip to content

Commit d79486a

Browse files
authored
ci(publish): update workflow (#122)
* ci(publish): update workflow * ci(publish): update workflow * ci(publish): update workflow * ci(publish): update workflow * ci(publish): update workflow * ci(publish): update workflow * ci(publish): update workflow * ci(publish): update workflow
1 parent 3faaa97 commit d79486a

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ on:
1010
default: 'false'
1111
env:
1212
JAVA_VERSION: 21
13-
NODE_VERSION: 22
13+
NODE_VERSION: 24
14+
CARGO_TERM_COLOR: always
15+
DRY_RUN: ${{ (github.event.inputs.dry-run == 'true' && '--dry-run') || '' }}
16+
17+
permissions:
18+
id-token: write
19+
contents: read
1420

1521
jobs:
1622
build:
@@ -43,9 +49,6 @@ jobs:
4349
publish: false
4450

4551
runs-on: ${{ matrix.os }}
46-
permissions:
47-
contents: read
48-
id-token: write
4952

5053
steps:
5154
- name: Checkout
@@ -54,6 +57,7 @@ jobs:
5457
uses: actions/setup-node@v6
5558
with:
5659
node-version: ${{env.NODE_VERSION}}.x
60+
registry-url: 'https://registry.npmjs.org'
5761
- name: Setup Java JDK
5862
uses: actions/setup-java@v5
5963
with:
@@ -85,28 +89,22 @@ jobs:
8589
run: mv java.*.node npm/${{ matrix.package }}
8690
shell: bash
8791
- name: NPM Publish Binary
88-
uses: JS-DevTools/npm-publish@v4
8992
if: ${{ matrix.package != 'linux-x64-gnu' }}
90-
with:
91-
access: public
92-
package: npm/${{ matrix.package }}/package.json
93-
dry-run: ${{ github.event.inputs.dry-run == 'true' }}
94-
ignore-scripts: false
93+
working-directory: npm/${{ matrix.package }}
94+
run: npm publish --access public ${{env.DRY_RUN}}
9595
- name: NPM Publish
96-
uses: JS-DevTools/npm-publish@v4.1.5
9796
if: ${{ matrix.package == 'linux-x64-gnu' }}
98-
with:
99-
access: public
100-
dry-run: ${{ github.event.inputs.dry-run == 'true' }}
101-
ignore-scripts: false
97+
run: npm publish --access public ${{env.DRY_RUN}}
10298

10399
build-musl:
104100
runs-on: ubuntu-latest
105-
permissions:
106-
contents: read
107-
id-token: write
108101
steps:
109102
- uses: actions/checkout@v6
103+
- name: Setup Node.js environment
104+
uses: actions/setup-node@v6
105+
with:
106+
node-version: ${{env.NODE_VERSION}}.x
107+
registry-url: 'https://registry.npmjs.org'
110108
- name: Build
111109
uses: addnab/docker-run-action@v3
112110
timeout-minutes: 180
@@ -127,12 +125,8 @@ jobs:
127125
run: mv java.*.node npm/linux-x64-musl
128126
shell: bash
129127
- name: NPM Publish Binary
130-
uses: JS-DevTools/npm-publish@v4
131-
with:
132-
access: public
133-
package: npm/linux-x64-musl/package.json
134-
dry-run: ${{ github.event.inputs.dry-run == 'true' }}
135-
ignore-scripts: false
128+
working-directory: npm/linux-x64-musl
129+
run: npm publish --access public ${{env.DRY_RUN}}
136130

137131
draft-release:
138132
needs: [build, build-musl]

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
strategy:
145145
fail-fast: false
146146
matrix:
147-
node-version: [20, 22]
147+
node-version: [20, 22, 24]
148148
runs-on: ubuntu-24.04
149149
steps:
150150
- uses: actions/checkout@v6
@@ -225,7 +225,7 @@ jobs:
225225
strategy:
226226
fail-fast: false
227227
matrix:
228-
node-version: [20, 22]
228+
node-version: [20, 22, 24]
229229
runs-on: ubuntu-latest
230230
steps:
231231
- uses: actions/checkout@v6

npm/linux-arm64-gnu/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,12 @@
1717
},
1818
"libc": [
1919
"glibc"
20-
]
20+
],
21+
"repository": {
22+
"type": "git",
23+
"url": "git+https://github.com/MarkusJx/node-java-bridge.git"
24+
},
25+
"bugs": {
26+
"url": "https://github.com/MarkusJx/node-java-bridge/issues"
27+
}
2128
}

0 commit comments

Comments
 (0)