From b15f04899f9affc549694c4c013dfa2b096bae7a Mon Sep 17 00:00:00 2001 From: Markus <28785953+MarkusJx@users.noreply.github.com> Date: Sun, 22 Feb 2026 16:43:14 +0100 Subject: [PATCH 1/4] ci(publish): update workflow --- .github/workflows/publish.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0ca4001..9908265 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,9 @@ on: type: boolean required: false default: 'false' +env: + JAVA_VERSION: 21 + NODE_VERSION: 22 jobs: build: @@ -47,12 +50,12 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v6 with: - node-version: 22.x + node-version: ${{env.NODE_VERSION}}.x - name: Setup Java JDK uses: actions/setup-java@v5 with: distribution: 'temurin' - java-version: '17' + java-version: ${{env.JAVA_VERSION}} - name: Add rust target run: rustup target add ${{ matrix.target }} - name: Setup cross-compilation @@ -79,7 +82,7 @@ jobs: run: mv java.*.node npm/${{ matrix.package }} shell: bash - name: NPM Publish Binary - uses: JS-DevTools/npm-publish@e06fe3ef65499b38eb12224f2a60979f6d797330 + uses: JS-DevTools/npm-publish@4 if: ${{ matrix.package != 'linux-x64-gnu' }} with: access: public @@ -88,7 +91,7 @@ jobs: dry-run: ${{ github.event.inputs.dry-run == 'true' }} ignore-scripts: false - name: NPM Publish - uses: JS-DevTools/npm-publish@v3.1.1 + uses: JS-DevTools/npm-publish@v4 if: ${{ matrix.package == 'linux-x64-gnu' }} with: access: public @@ -104,11 +107,9 @@ jobs: uses: addnab/docker-run-action@v3 timeout-minutes: 180 with: - image: ghcr.io/markusjx/node-java-bridge/java-bridge-node-alpine-build:node-20-jdk-17 + image: ghcr.io/markusjx/node-java-bridge/test-alpine:${{env.NODE_VERSION}}-${{env.JAVA_VERSION}} options: -v ${{ github.workspace }}:/github/workspace -w /github/workspace run: | - npm config set cache /tmp --global - export CI=true npm ci npm run build - name: Get version @@ -122,7 +123,7 @@ jobs: run: mv java.*.node npm/linux-x64-musl shell: bash - name: NPM Publish Binary - uses: JS-DevTools/npm-publish@v3.1.1 + uses: JS-DevTools/npm-publish@v4 with: access: public token: ${{ secrets.NPM_TOKEN }} @@ -143,13 +144,12 @@ jobs: shell: bash - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: v${{ env.version }} - release_name: Release v${{ env.version }} - body: | - Auto-generated release + name: Release v${{ env.version }} + generate_release_notes: true draft: true prerelease: false From d04a23edb40f9543dea9f2af774c56ab6894d54d Mon Sep 17 00:00:00 2001 From: Markus <28785953+MarkusJx@users.noreply.github.com> Date: Sun, 22 Feb 2026 16:51:57 +0100 Subject: [PATCH 2/4] ci(publish): update workflow --- .github/workflows/publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9908265..4293c8c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,6 +43,9 @@ jobs: publish: false runs-on: ${{ matrix.os }} + permissions: + contents: read + id-token: write steps: - name: Checkout @@ -82,7 +85,7 @@ jobs: run: mv java.*.node npm/${{ matrix.package }} shell: bash - name: NPM Publish Binary - uses: JS-DevTools/npm-publish@4 + uses: JS-DevTools/npm-publish@v4 if: ${{ matrix.package != 'linux-x64-gnu' }} with: access: public @@ -91,7 +94,7 @@ jobs: dry-run: ${{ github.event.inputs.dry-run == 'true' }} ignore-scripts: false - name: NPM Publish - uses: JS-DevTools/npm-publish@v4 + uses: JS-DevTools/npm-publish@v4.1.5 if: ${{ matrix.package == 'linux-x64-gnu' }} with: access: public @@ -101,6 +104,9 @@ jobs: build-musl: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v6 - name: Build From a55a6912a107bf98d2943199c4d1ff80b5376c6a Mon Sep 17 00:00:00 2001 From: Markus <28785953+MarkusJx@users.noreply.github.com> Date: Sun, 22 Feb 2026 16:52:45 +0100 Subject: [PATCH 3/4] ci(publish): update workflow --- .github/workflows/publish.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4293c8c..80c0083 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -89,7 +89,6 @@ jobs: if: ${{ matrix.package != 'linux-x64-gnu' }} with: access: public - token: ${{ secrets.NPM_TOKEN }} package: npm/${{ matrix.package }}/package.json dry-run: ${{ github.event.inputs.dry-run == 'true' }} ignore-scripts: false @@ -98,7 +97,6 @@ jobs: if: ${{ matrix.package == 'linux-x64-gnu' }} with: access: public - token: ${{ secrets.NPM_TOKEN }} dry-run: ${{ github.event.inputs.dry-run == 'true' }} ignore-scripts: false @@ -132,7 +130,6 @@ jobs: uses: JS-DevTools/npm-publish@v4 with: access: public - token: ${{ secrets.NPM_TOKEN }} package: npm/linux-x64-musl/package.json dry-run: ${{ github.event.inputs.dry-run == 'true' }} ignore-scripts: false From 4fd10f76164f2b1cb15a8470b808a6bb0ed96491 Mon Sep 17 00:00:00 2001 From: Markus <28785953+MarkusJx@users.noreply.github.com> Date: Sun, 22 Feb 2026 16:55:57 +0100 Subject: [PATCH 4/4] ci(publish): update workflow --- .github/workflows/publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 80c0083..0904cbe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,8 +44,8 @@ jobs: runs-on: ${{ matrix.os }} permissions: - contents: read - id-token: write + contents: read + id-token: write steps: - name: Checkout @@ -103,8 +103,8 @@ jobs: build-musl: runs-on: ubuntu-latest permissions: - contents: read - id-token: write + contents: read + id-token: write steps: - uses: actions/checkout@v6 - name: Build