From 173be29fd129364b947757f3f1d1d85723bb1306 Mon Sep 17 00:00:00 2001 From: lukix Date: Sat, 27 Jul 2024 11:09:17 +0200 Subject: [PATCH] Adjust code for publishing --- .github/workflows/publish-package.yml | 2 -- .npmignore | 3 --- package.json | 5 +++-- 3 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 .npmignore diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 9609f47..301dfd2 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -17,8 +17,6 @@ jobs: node-version-file: '.nvmrc' registry-url: 'https://registry.npmjs.org' - run: npm ci - - run: npm run verify - - run: npm run build - run: npm publish --provenance --dry-run env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 7a19be3..0000000 --- a/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -src -out diff --git a/package.json b/package.json index 8745874..6bacd92 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,9 @@ ], "repository": { "type": "git", - "url": "https://github.com/lukix/declarative-canvas.git" + "url": "git+https://github.com/lukix/declarative-canvas.git" }, + "files": ["lib/", "!lib/storybook/", "!__tests__/"], "scripts": { "dev": "tsc --watch", "test": "jest", @@ -25,7 +26,7 @@ "build": "tsc", "lint": "eslint ./src/**/*.ts", "verify": "npm run lint && npm run test && prettier --check ./src/* && tsc --noEmit", - "prepublishOnly": "npm run build && npm run verify", + "prepublishOnly": "npm run verify && npm run build", "storybook": "vite dev", "build-storybook": "vite build --outDir out", "prepare": "husky"