diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 02243e2..226fbd7 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 --no-git-checks + - 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 3333f05..b67aa5e 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,7 @@ devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ pnpm_10 + nodejs_24 ]; shellHook = '' diff --git a/package.json b/package.json index 592ece9..f0b1afb 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"