diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f99e735..2a2d3bb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -30,15 +30,19 @@ jobs: uses: actions/setup-node@v6 with: node-version: 24 - cache: yarn + cache: pnpm + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 - name: Install uses: dtolnay/rust-toolchain@stable with: components: clippy, rustfmt - name: Install dependencies - run: yarn install + run: pnpm install --no-immutable - name: Oxlint - run: yarn lint + run: pnpm lint - name: Cargo fmt run: cargo fmt -- --check - name: Clippy @@ -50,16 +54,16 @@ jobs: settings: - host: macos-latest target: x86_64-apple-darwin - build: yarn build --target x86_64-apple-darwin + build: pnpm build --target x86_64-apple-darwin - host: windows-latest - build: yarn build --target x86_64-pc-windows-msvc + build: pnpm build --target x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc - host: ubuntu-latest target: x86_64-unknown-linux-gnu - build: yarn build --target x86_64-unknown-linux-gnu --use-napi-cross + build: pnpm build --target x86_64-unknown-linux-gnu --use-napi-cross - host: macos-latest target: aarch64-apple-darwin - build: yarn build --target aarch64-apple-darwin + build: pnpm build --target aarch64-apple-darwin name: stable - ${{ matrix.settings.target }} - node@22 runs-on: ${{ matrix.settings.host }} steps: @@ -68,7 +72,11 @@ jobs: uses: actions/setup-node@v6 with: node-version: 24 - cache: yarn + cache: pnpm + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 - name: Install uses: dtolnay/rust-toolchain@stable with: @@ -101,7 +109,7 @@ jobs: if: ${{ matrix.settings.setup }} shell: bash - name: Install dependencies - run: yarn install + run: pnpm install --no-immutable - name: Build run: ${{ matrix.settings.build }} shell: bash @@ -140,10 +148,10 @@ jobs: uses: actions/setup-node@v6 with: node-version: ${{ matrix.node }} - cache: yarn + cache: pnpm architecture: ${{ matrix.settings.architecture }} - name: Install dependencies - run: yarn install + run: pnpm install --no-immutable - name: Download artifacts uses: actions/download-artifact@v7 with: @@ -173,7 +181,7 @@ jobs: uses: actions/setup-node@v6 with: node-version: ${{ matrix.node }} - cache: yarn + cache: pnpm - name: Output docker params id: docker run: | @@ -197,7 +205,7 @@ jobs: run: | yarn config set --json supportedArchitectures.cpu '["current", "arm64", "x64", "arm"]' yarn config set --json supportedArchitectures.libc '["current", "musl", "gnu"]' - yarn install + pnpm install - name: Download artifacts uses: actions/download-artifact@v7 with: @@ -235,9 +243,9 @@ jobs: uses: actions/setup-node@v6 with: node-version: 24 - cache: yarn + cache: pnpm - name: Install dependencies - run: yarn install + run: pnpm install --no-immutable - name: create npm dirs run: yarn napi create-npm-dirs - name: Download all artifacts diff --git a/package.json b/package.json index bbee546..49239c9 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,14 @@ "main": "index.js", "repository": { "type": "git", - "url": "git+ssh://git@github.com/napi-rs/package-template.git" + "url": "git+ssh://git@github.com/atom-universe/FeOPack.git" }, "license": "MIT", "browser": "browser.js", + "workspaces": [ + "packages/*", + "crates/node-binding" + ], "keywords": [ "napi-rs", "NAPI", @@ -39,6 +43,7 @@ "access": "public" }, "scripts": { + "build": "napi build --platform --release", "build:crates": "just build-crates", "build:update": "just build-update", "artifacts": "napi artifacts",