Skip to content

Commit

Permalink
Make realm the default package
Browse files Browse the repository at this point in the history
  • Loading branch information
takameyer committed Jul 20, 2023
1 parent e7a9fe4 commit b42289c
Show file tree
Hide file tree
Showing 8 changed files with 254 additions and 104 deletions.
4 changes: 2 additions & 2 deletions parse-release-tag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This action will take a release tag string as input and produce the following output:

1. `package-name`: the name of the package, if set.
1. `package-name`: the name of the package, or `realm` if not set.
2. `package-version`: the version string (10.9.8).
3. `package-version-suffix`: the prerelease suffix of the version tag
4. `prerelease`: set to `true` if a version suffix (`-<something>`) is appended to the tag.
Expand All @@ -18,7 +18,7 @@ For example, the tag "my-package-v42.0.0-alpha.1 would return:
and the tag "v42.0.0" would return:
```
package-name: undefined
package-name: "realm"
package-version: "42.0.0"
package-version-suffix: undefined
prerelease: false
Expand Down
4 changes: 2 additions & 2 deletions parse-release-tag/__tests__/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("parseReleaseTag", () => {
const releaseTagWithoutPackage = "v1.0.0";
const parsedReleaseTagWithoutPackage = parseReleaseTag(releaseTagWithoutPackage);
expect(parsedReleaseTagWithoutPackage).deep.equal({
packageName: undefined,
packageName: "realm",
packageVersion: "1.0.0",
packageVersionSuffix: undefined,
prerelease: false,
Expand All @@ -34,7 +34,7 @@ describe("parseReleaseTag", () => {
const releaseTagWithoutPackageWithSuffix = "v1.0.0-alpha.1";
const parsedReleaseTagWithoutPackageWithSuffix = parseReleaseTag(releaseTagWithoutPackageWithSuffix);
expect(parsedReleaseTagWithoutPackageWithSuffix).deep.equal({
packageName: undefined,
packageName: "realm",
packageVersion: "1.0.0",
packageVersionSuffix: "-alpha.1",
prerelease: true,
Expand Down
Loading

0 comments on commit b42289c

Please sign in to comment.