mirror of
https://github.com/ApfelTeeSaft/R2-Explorer.git
synced 2026-08-26 19:33:39 +00:00
Update publish github action
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user