From 58cd30cf4554e0e3346db02895406192ae2cb1ed Mon Sep 17 00:00:00 2001 From: Gabriel Massadas Date: Thu, 19 Dec 2024 18:16:30 +0000 Subject: [PATCH] Update publish github action --- .github/workflows/publish.yml | 2 +- package.json | 2 +- packages/worker/package.json | 11 +++-------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7859b2a..2985e2a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/package.json b/package.json index 30cdebb..6a2b43e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/worker/package.json b/packages/worker/package.json index 8a505a2..3f205b1 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -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"