diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 057a41e..70ba2cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,9 @@ jobs: version: 'latest' run_install: true + - name: Set version number in package.json + run: pnpm version from-git --no-git-tag-version + - name: Run Build run: pnpm run prepare-release diff --git a/README.md b/README.md index d36830b..73392bf 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,9 @@ Development ### Releases 1. Check the CHANGELOG, to ensure that the next version number is correct according to semver and there is no "(unreleased)" after the next version number. -2. Bump the version number in `package.json`. -3. Commit these changes, commit message "Release x.y.z" -4. Push these changes -5. Tag the latest commit with "x.y.z" -6. Push the tag. +2. Commit these changes, commit message "Release x.y.z" +3. Push these changes +4. Tag the latest commit with "x.y.z" +5. Push the tag. -Publishing to npm is done automatically in a Github action. +Publishing to npm is done automatically in a GitHub action. diff --git a/package.json b/package.json index 511cb0d..b796765 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "name": "@21torr/dune", - "version": "2.0.2", "description": "A library of commonly used JS functionality.", "license": "MIT", "homepage": "https://github.com/21TORR/dune", @@ -15,7 +14,7 @@ "dev": "tsc --project tsconfig.build.json --noEmitOnError --noErrorTruncation --listEmittedFiles --pretty -w", "lint": "prettier-package-json --use-tabs --list-different", "prepare-release": "pnpm run build && cd dist && npm pack --dry-run && publint", - "test": "pnpm build && cd dist && npm pack --dry-run && publint" + "test": "pnpm run build && cd dist && pnpm version '2.0.0-dummy' --no-git-tag-version && npm pack --dry-run && publint" }, "dependencies": { "xtend": "^4.0.2"