diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 0817a9a0..810fcce4 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -6,7 +6,7 @@ on: jobs: publish_npm: - runs-on: windows-latest + runs-on: ubuntu-latest permissions: contents: read @@ -20,18 +20,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 18 - - - name: Setup Python - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - - name: Install node-gyp - run: npm install -g node-gyp - - - name: Build package - run: npm run build + node-version: 20 - name: Create .npmrc file run: | diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml deleted file mode 100644 index a6aeaeeb..00000000 --- a/.github/workflows/pull-request.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Pull request checks - -on: - pull_request: - types: [opened, synchronize, reopened] - -jobs: - pull_request: - runs-on: windows-latest - - permissions: - contents: read - id-token: write - packages: write - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 - - - name: Setup Python - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - - name: Install node-gyp - run: npm install -g node-gyp - - - name: Build package - run: npm run build - - - name: Upload build artifacts - uses: actions/upload-artifact@v4 - with: - path: | - dist/ - build/ diff --git a/.gitignore b/.gitignore index d6802634..fb0feda0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ /.vscode /bin /build -/dist /venv \ No newline at end of file diff --git a/README.md b/README.md index e3e45cce..49ce0a31 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,10 @@ This guide explains how to set up and build the `node-win` project. Before proceeding, ensure you have the following tools installed: - **Python 3.10** -- **Node 18** +- **Node 20** ```bash -nvm install 18 +nvm install 20 ``` - **node-gyp** diff --git a/dist/addon.node b/dist/addon.node new file mode 100644 index 00000000..03841559 Binary files /dev/null and b/dist/addon.node differ diff --git a/index.d.ts b/dist/index.d.ts similarity index 100% rename from index.d.ts rename to dist/index.d.ts diff --git a/index.js b/dist/index.js similarity index 68% rename from index.js rename to dist/index.js index 378a8338..2a0b94cf 100644 --- a/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addon = void 0; -exports.addon = require("./dist/addon.node"); +exports.addon = require("./addon.node"); diff --git a/package.json b/package.json index 83f9252c..53ae70e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@internxt/node-win", - "version": "1.0.16", + "version": "1.0.17", "description": "Drive desktop node addon", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -16,5 +16,8 @@ "build:gyp": "node-gyp configure build", "config:gyp": "python gyp.config.py", "build": "python gyp.config.py && node-gyp clean && node-gyp configure build" + }, + "engines": { + "node": ">=20.0.0" } }