[F] Release - Support prerelease tag on npm publish and fix repo url

This commit is contained in:
Azalea
2026-11-04 09:18:37 +00:00
parent 90d589452c
commit 02375c363a
2 changed files with 7 additions and 2 deletions

View File

@@ -391,7 +391,12 @@ jobs:
- name: Publish package
if: steps.npm-state.outputs.exists != 'true'
run: npm publish --provenance
run: |
if [[ "${{ needs.metadata.outputs.version }}" == *-* ]]; then
npm publish --provenance --tag next
else
npm publish --provenance
fi
publish-cargo:
name: Publish to crates.io

View File

@@ -4,7 +4,7 @@
"description": "Updated neofetch",
"repository": {
"type": "git",
"url": "https://github.com/hykilpikonna/hyfetch"
"url": "git+https://github.com/hykilpikonna/hyfetch.git"
},
"bin": {
"neowofetch": "neofetch"