Update publish github action

This commit is contained in:
Gabriel Massadas
2024-12-19 18:16:30 +00:00
parent c046b9197f
commit 58cd30cf45
3 changed files with 5 additions and 10 deletions
+1 -1
View File
@@ -26,6 +26,6 @@ jobs:
- name: Package artifact
run: pnpm package
- name: Publish to npm
run: pnpm run publish
run: pnpm run publish-npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
+1 -1
View File
@@ -13,7 +13,7 @@
"deploy-dashboard-dev": "pnpm run --filter r2-explorer-dashboard deploy-dev",
"deploy-dev-worker": "pnpm run --filter r2-explorer-dev-worker deploy",
"package": "pnpm run --filter r2-explorer package",
"publish": "pnpm run --filter r2-explorer publish"
"publish-npm": "pnpm run --filter r2-explorer publish-npm"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
+3 -8
View File
@@ -5,18 +5,13 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dashboard",
"dist",
"LICENSE",
"README.md"
],
"files": ["dashboard", "dist", "LICENSE", "README.md"],
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts && cp -R ../dashboard/dist/spa/ dashboard/ && cp ../../README.md . && cp ../../LICENSE .",
"lint": "npx @biomejs/biome check src/ tests/ || (npx @biomejs/biome check --write src/ tests/; exit 1)",
"test": "vitest run --root tests",
"package": "npm run build && npm pack",
"publish": "npm publish"
"publish-npm": "npm publish"
},
"publishConfig": {
"access": "public"
@@ -46,7 +41,7 @@
"homepage": "https://r2explorer.dev",
"repository": {
"type": "git",
"url": "https://github.com/G4brym/R2-Explorer.git"
"url": "git+https://github.com/G4brym/R2-Explorer.git"
},
"bugs": {
"url": "https://github.com/G4brym/R2-Explorer/issues"