diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bd07eb7..962e0f8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,8 +1,6 @@ name: Automated deploy -on: - release: - types: [created] +on: [pull_request] env: VERSION: ${{ github.event.release.tag_name }} @@ -20,6 +18,10 @@ jobs: node_arch: x64 command: build:gyp args: --arch x64+arm64 + - os: windows-2019 + label: x86 + node_arch: x86 + command: build:gyp - os: windows-2019 label: x64 node_arch: x64 @@ -56,57 +58,3 @@ jobs: - name: Prebuild package run: npm run ${{ matrix.command }} -- ${{ matrix.args }} - - - uses: actions/upload-artifact@v4 - with: - name: build-artifacts-${{ matrix.os }}-${{ matrix.label }} - path: prebuilds/ - if-no-files-found: error - - merge: - runs-on: ubuntu-latest - needs: build - steps: - - name: Merge Artifacts - uses: actions/upload-artifact/merge@v4 - with: - name: build-artifacts - pattern: build-artifacts-* - - deploy: - needs: merge - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ env.TARGET_REF }} - token: ${{ secrets.GPR_TOKEN }} - - - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: 'https://registry.npmjs.org' - - - uses: actions/download-artifact@v4 - with: - name: build-artifacts - path: prebuilds - - - name: Install dependencies - run: npm ci - - - name: Publish to npm - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: 'https://npm.pkg.github.com' - scope: '@NeuraLegion' - - - name: Publish to GPR - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }} diff --git a/package.json b/package.json index 90989b2..68d3db2 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "nan": "^2.19.0", - "node-gyp-build": "^4.8.0" + "node-gyp-build": "github:derevnjuk/node-gyp-build#265be9efaccf9f86d279875ca0458533353064c6" }, "contributors": [ { @@ -63,7 +63,7 @@ "devDependencies": { "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", - "prebuildify": "^6.0.0", + "prebuildify": "github:derevnjuk/prebuildify#7c2bf270e97a152bee4ae9b3b9c09e8d2120ee25", "prebuildify-cross": "^5.1.0", "semantic-release": "^23.0.8" }