From 81a07f774917b4926c1abf714b9d74c946640789 Mon Sep 17 00:00:00 2001 From: Tate Date: Thu, 20 Jan 2022 10:29:33 -0800 Subject: [PATCH] remove unnecessary files when publishing to npm registry. --- .github/workflows/publish.yml | 2 +- CHANGELOG.md | 4 ++++ package.json | 6 ++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b8d6fdd..aa61ab8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,6 @@ jobs: registry-url: "https://registry.npmjs.org" - run: yarn - run: yarn build - - run: yarn publish + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b6d3db..1f8cd12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v1.0.2 + +Internal: remove unnecessary files when publishing to npm registry. + ## v1.0.1 Internal: fix CI publishes. diff --git a/package.json b/package.json index 3b3b1ef..6f86f06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-use-error-boundary", - "version": "1.0.1", + "version": "1.0.2", "description": "A React error boundary hook for function components", "license": "MIT", "author": "Tate ", @@ -30,9 +30,7 @@ "test": "jest src/*", "test:ci": "yarn test --coverage", "typecheck": "yarn tsc --noEmit", - "typecheck:watch": "yarn typecheck --watch", - "version": "git add -A package.json", - "postversion": "git push && git push --tags" + "typecheck:watch": "yarn typecheck --watch" }, "sideEffects": false, "types": "dist/index.d.ts",