Skip to content

Commit

Permalink
Merge pull request #6 from kylorhall/v1.1.1
Browse files Browse the repository at this point in the history
Bump to v1.1.1.
  • Loading branch information
kylorhall authored May 25, 2021
2 parents 6489a09 + ccfa8f0 commit f76ed62
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/package-enforcement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- name: "Enforce Version"
id: enforce
uses: kylorhall/[email protected].0
uses: kylorhall/[email protected].1
with:
package: "@actions/core"
range: "^1.2.0"
Expand All @@ -30,7 +30,7 @@ jobs:

- name: "Enforce Version"
id: enforce
uses: kylorhall/[email protected].0
uses: kylorhall/[email protected].1
with:
package: "typescript"
range: "^4.0.0"
Expand All @@ -49,7 +49,7 @@ jobs:

- name: "Enforce Version"
id: enforce
uses: kylorhall/[email protected].0
uses: kylorhall/[email protected].1
with:
package: "@types/jest"
range: ">=26"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: "Enforce Version"
id: enforce
uses: kylorhall/[email protected].0
uses: kylorhall/[email protected].1
with:
package: "typescript"
range: ">=4.2.0"
Expand Down Expand Up @@ -69,8 +69,9 @@ yarn jest:tdd
## Release

Manually build a New Release: [here](https://github.com/kylorhall/enforce-package-dependency-version/releases/new)

1. Deicde on a semver like `v1.2.3`
2. :warning: Point the release to the correct commit (not _main_). `@latest` isn't used.
2. :warning: Point the release to the correct commit (not _main_). `@latest` isn't used.
3. Bump this version in `package.json` file—just for the sake of it.
4. Bump this version in `.github/workflows/package-enforcement.yml` file.
5. Bump this version in `README.md` file.
4 changes: 1 addition & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3778,9 +3778,7 @@ function enforceVersion(config = getConfig()) {
throw new Error(`⚠️ Resolved version '${parsedVersion.version}' did not satisfy range '${range}'.`);
}
if (config.version_prerelease === true) {
if (parsedVersion.prerelease && !parsedVersion.prerelease.length) {
throw new Error(`⚠️ Expected a prerelease on '${parsedVersion.version}', got none.`);
}
// NOTE: In this case, we do not care!
}
else if (config.version_prerelease === false) {
if (parsedVersion.prerelease && parsedVersion.prerelease.length) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enforce-package-dependency-version",
"version": "1.1.0",
"version": "1.1.1",
"description": "Allows us to enforce a specific package dependency version in a `package.json` file.",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit f76ed62

Please sign in to comment.