diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 02243e2..802525c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -41,5 +41,12 @@ jobs: registry-url: 'https://registry.npmjs.org' node-version: lts/* + - name: 📦 Pack package + run: nix develop --command pnpm pack + - name: 🚀 Publish package - run: nix develop --command pnpm publish --provenance --no-git-checks --access public + shell: bash + run: | + PACKAGE_TGZ=$(ls *.tgz | head -n 1) + echo "Publishing package: $PACKAGE_TGZ" + npm publish "$PACKAGE_TGZ" --access public diff --git a/flake.nix b/flake.nix index 56ade39..687f23f 100644 --- a/flake.nix +++ b/flake.nix @@ -20,6 +20,7 @@ { devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ + nodejs_24 pnpm_10 nixfmt-rfc-style ]; diff --git a/package.json b/package.json index 5d0e9fa..b216622 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "lint:oxfmt": "oxfmt --no-error-on-unmatched-pattern --check .", "lint:oxlint": "oxlint --max-warnings=0 --type-aware --type-check", "lint:knip": "knip", - "preinstall": "npx only-allow pnpm", "prepack": "npm pkg delete scripts.preinstall && pnpm run build", "test": "vitest", "coverage": "vitest run --coverage"