-
Notifications
You must be signed in to change notification settings - Fork 3
fix(ci): remove --provenance #242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -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 | ||||||
|
Comment on lines
+44
to
+52
|
||||||
| npm publish "$PACKAGE_TGZ" --access public | |
| npm publish "$PACKAGE_TGZ" --access public --provenance |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ | |
| devShells.default = pkgs.mkShell { | ||
| buildInputs = with pkgs; [ | ||
| pnpm_10 | ||
| nodejs_24 | ||
| ]; | ||
|
|
||
| shellHook = '' | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -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", | ||||||
|
||||||
| "prepack": "npm pkg delete scripts.preinstall && pnpm run build", | |
| "prepack": "pnpm run build", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command uses head -n 1 to select the first tarball, which could select an unexpected file if multiple .tgz files exist in the directory. Consider adding error handling to verify exactly one tarball exists, or use a more specific pattern like finding the tarball with the expected package name format.