From c078ac3560a1ac34a08983ac8ec3ba9edfd1c0e0 Mon Sep 17 00:00:00 2001 From: Eric Rodrigues Pires Date: Sun, 30 Nov 2025 23:51:19 -0300 Subject: [PATCH] [skip ci] Fix Trusted Publishing for NPM --- .github/workflows/release-dotnet.yaml | 2 +- .github/workflows/release-lsp.yaml | 6 +++--- .github/workflows/release-node.yaml | 10 +++++----- .github/workflows/release-python.yaml | 2 +- .github/workflows/release-wasm.yaml | 10 +++++----- .github/workflows/validate.yaml | 6 +++--- .github/workflows/website.yaml | 4 ++-- .github/workflows/zizmor.yaml | 2 +- duper-js-node/package.json | 2 +- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release-dotnet.yaml b/.github/workflows/release-dotnet.yaml index 307b61c..481c685 100644 --- a/.github/workflows/release-dotnet.yaml +++ b/.github/workflows/release-dotnet.yaml @@ -1,4 +1,4 @@ -name: "[Release] Build .NET package" +description: Build and release the .NET package on: workflow_dispatch: diff --git a/.github/workflows/release-lsp.yaml b/.github/workflows/release-lsp.yaml index 4178635..cf937c0 100644 --- a/.github/workflows/release-lsp.yaml +++ b/.github/workflows/release-lsp.yaml @@ -1,4 +1,4 @@ -name: "[Release] Build duper_lsp and package extensions" +description: Build duper_lsp and release package extensions on: workflow_dispatch: @@ -108,7 +108,7 @@ jobs: - name: Build extension working-directory: duper-vs-code run: | - npm install + npm ci npm run build npx vsce package --out "../dist/duper-vs-code-${{ matrix.vscode-target }}.vsix" --target ${{ matrix.vscode-target }} - name: Upload artifacts @@ -169,7 +169,7 @@ jobs: - name: Install dependencies working-directory: duper-vs-code run: | - npm install + npm ci - name: Publish to Visual Studio Marketplace working-directory: duper-vs-code run: | diff --git a/.github/workflows/release-node.yaml b/.github/workflows/release-node.yaml index 3084d8a..19ac6dc 100644 --- a/.github/workflows/release-node.yaml +++ b/.github/workflows/release-node.yaml @@ -1,4 +1,4 @@ -name: "[Release] Build @duper-js/node package" +description: Build and release @duper-js/node on: workflow_dispatch: @@ -81,7 +81,7 @@ jobs: - name: Install dependencies working-directory: duper-js-node run: | - npm install + npm ci - name: Build with cargo-zigbuild (Linux) if: matrix.runner == 'ubuntu-24.04' working-directory: duper-js-node @@ -153,9 +153,9 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} registry-url: 'https://registry.npmjs.org' + - name: Update NPM + run: npm install npm@11 -g - name: Publish to NPM working-directory: duper-js-node run: | - npm publish --access public - env: - NODE_AUTH_TOKEN: '' + npm publish --provenance --access public diff --git a/.github/workflows/release-python.yaml b/.github/workflows/release-python.yaml index ef8ffee..8435234 100644 --- a/.github/workflows/release-python.yaml +++ b/.github/workflows/release-python.yaml @@ -1,4 +1,4 @@ -name: "[Release] Build duper-python package" +description: Build and release duper-python on: workflow_dispatch: diff --git a/.github/workflows/release-wasm.yaml b/.github/workflows/release-wasm.yaml index 3981f15..f910c6e 100644 --- a/.github/workflows/release-wasm.yaml +++ b/.github/workflows/release-wasm.yaml @@ -1,4 +1,4 @@ -name: "[Release] Build @duper-js/wasm package" +description: Build and release @duper-js/wasm on: workflow_dispatch: @@ -46,7 +46,7 @@ jobs: - name: Install dependencies and build working-directory: duper-js-wasm run: | - npm install + npm ci npm run build:release - name: Upload artifacts uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 @@ -77,9 +77,9 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} registry-url: 'https://registry.npmjs.org' + - name: Update NPM + run: npm install npm@11 -g - name: Publish to NPM working-directory: duper-js-wasm run: | - npm publish --access public - env: - NODE_AUTH_TOKEN: '' + npm publish --provenance --access public diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 6ebef17..dec4bde 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -1,4 +1,4 @@ -name: Validate +description: Validate on: push: @@ -148,7 +148,7 @@ jobs: - name: Install Node dependencies and build working-directory: ./duper-js-node run: | - npm install + npm ci npm run build npm run bundle - name: Test with Jest @@ -186,7 +186,7 @@ jobs: - name: Install Node dependencies and build WASM working-directory: ./duper-js-wasm run: | - npm install + npm ci npm run build:ci - name: Test with Vitest working-directory: ./duper-js-wasm diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index b8cffd6..ade9c88 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -1,4 +1,4 @@ -name: Build website with VitePress +description: Build website with VitePress on: push: @@ -56,7 +56,7 @@ jobs: - name: Install Node dependencies and build working-directory: ./duper_website run: | - npm install + npm ci npm run wasm:build npm run wasm:bindgen ../binaryen/bin/wasm-opt -Os ./pkg/duper_website_bg.wasm -o ./pkg/duper_website_bg.wasm diff --git a/.github/workflows/zizmor.yaml b/.github/workflows/zizmor.yaml index b20177a..09aeb71 100644 --- a/.github/workflows/zizmor.yaml +++ b/.github/workflows/zizmor.yaml @@ -1,4 +1,4 @@ -name: Analyze GitHub Actions with zizmor +description: Analyze GitHub Actions with zizmor on: push: diff --git a/duper-js-node/package.json b/duper-js-node/package.json index cdd3cf1..59900b9 100644 --- a/duper-js-node/package.json +++ b/duper-js-node/package.json @@ -1,6 +1,6 @@ { "name": "@duper-js/node", - "version": "0.0.0", + "version": "0.0.1", "description": "Node.JS bindings for Duper, the format that's super!", "keywords": [ "Duper", -- 2.51.2