diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce0d688..dee0d55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - - run: npm ci + - run: npm ci && npm run patch - run: npm run build - run: npm test - run: npm run docs diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3be9aef..2861cb6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - - run: npm ci + - run: npm ci && npm run patch - run: npm run build - run: npm test @@ -25,7 +25,7 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ - - run: npm ci + - run: npm ci && npm run patch - run: npm run build - run: npm publish env: diff --git a/package-lock.json b/package-lock.json index 63275ae..4ad9129 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,11 @@ { "name": "read-gedcom", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "0.3.0", - "hasInstallScript": true, + "version": "0.3.1", "license": "MIT", "devDependencies": { "@types/chai": "^4.2.19", diff --git a/package.json b/package.json index 4d5f6cb..378854e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "read-gedcom", "description": "Gedcom file reader", - "version": "0.3.0", + "version": "0.3.1", "main": "dist/cjs/index.js", "module": "dist/es6/index.js", "types": "dist/cjs/index.d.ts", @@ -21,7 +21,7 @@ "docs": "typedoc --tsconfig tsconfig-build.json", "test": "mocha -r ts-node/register tests/**/*.test.ts", "lint": "npx eslint src/ tests/ --ext .ts --fix", - "postinstall": "patch-package" + "patch": "patch-package" }, "repository": { "type": "git", diff --git a/pages/changelog.md b/pages/changelog.md index 68bd624..73b3916 100644 --- a/pages/changelog.md +++ b/pages/changelog.md @@ -1,3 +1,7 @@ +## `0.3.1` + +* Fixed broken installation due to tests patching + ## `0.3.0` * Refactored the API: removal of namespaces (**major breaking changes**)