diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 067db70..42fc27f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,14 +39,14 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci - name: Build N-API addon for ${{ matrix.target }} - run: napi build --platform --release --target ${{ matrix.target }} --package gelectron-core + run: npx napi build --platform --release --target ${{ matrix.target }} --package gelectron-core - name: Rename .node file with platform-specific name shell: bash @@ -81,7 +81,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: 'https://registry.npmjs.org' - name: Download all platform packages