diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3186a81..7698603 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: run: yarn upgrade --dev - name: Prebuild - run: yarn prebuild + run: yarn build-prebuild - name: Build run: yarn build diff --git a/.github/workflows/cuda-test.yml b/.github/workflows/cuda-test.yml index 7f7a00f..98a62f9 100644 --- a/.github/workflows/cuda-test.yml +++ b/.github/workflows/cuda-test.yml @@ -69,7 +69,7 @@ jobs: run: yarn upgrade --dev - name: Prebuild - run: yarn prebuild + run: yarn build-prebuild - name: Build run: yarn build diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index f3c8f31..13d2d19 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -11,7 +11,7 @@ jobs: build: # The type of runner that the job will run on runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'publish-npm skip')" # Steps represent a sequence of tasks that will be executed as part of the job steps: diff --git a/.github/workflows/publish-prebuild.yml b/.github/workflows/publish-prebuild.yml index c403991..3c143d9 100644 --- a/.github/workflows/publish-prebuild.yml +++ b/.github/workflows/publish-prebuild.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, ubuntu-latest, windows-latest] - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'publish-prebuild skip')" # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -69,4 +69,4 @@ jobs: run: yarn upgrade --dev - name: Prebuild - run: yarn prebuild -u ${{ secrets.GITHUB_TOKEN }} + run: yarn build-prebuild -u ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 43a5ce5..bfb5b3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@arition/torch-js", - "version": "0.7.0-beta.1", + "version": "0.7.0-beta.2", "main": "dist/index.js", "types": "dist/index.d.ts", "author": "Kittipat Virochsiri, arition", @@ -10,11 +10,11 @@ "url": "git+https://github.com/arition/torch-js.git" }, "scripts": { - "install": "prebuild-install || cmake-js compile", + "install": "prebuild-install -r napi || cmake-js compile", "build": "node build.js", "compile": "cmake-js compile", "rebuild": "cmake-js rebuild", - "prebuild": "prebuild -t 3 -r napi --include-regex \"\\.[nsd][ol][dl]?e?$\" --backend cmake-js" + "build-prebuild": "prebuild -t 3 -r napi --include-regex \"\\.[nsd][ol][dl]?e?$\" --backend cmake-js" }, "devDependencies": { "@types/node": "^14.6.0",