Skip to content

Commit b42289c

Browse files
committed
Make realm the default package
1 parent e7a9fe4 commit b42289c

File tree

8 files changed

+254
-104
lines changed

8 files changed

+254
-104
lines changed

parse-release-tag/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
1. `package-name`: the name of the package, if set.
5+
1. `package-name`: the name of the package, or `realm` if not set.
66
2. `package-version`: the version string (10.9.8).
77
3. `package-version-suffix`: the prerelease suffix of the version tag
88
4. `prerelease`: set to `true` if a version suffix (`-<something>`) is appended to the tag.
@@ -18,7 +18,7 @@ For example, the tag "my-package-v42.0.0-alpha.1 would return:
1818
1919
and the tag "v42.0.0" would return:
2020
```
21-
package-name: undefined
21+
package-name: "realm"
2222
package-version: "42.0.0"
2323
package-version-suffix: undefined
2424
prerelease: false

parse-release-tag/__tests__/tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe("parseReleaseTag", () => {
2525
const releaseTagWithoutPackage = "v1.0.0";
2626
const parsedReleaseTagWithoutPackage = parseReleaseTag(releaseTagWithoutPackage);
2727
expect(parsedReleaseTagWithoutPackage).deep.equal({
28-
packageName: undefined,
28+
packageName: "realm",
2929
packageVersion: "1.0.0",
3030
packageVersionSuffix: undefined,
3131
prerelease: false,
@@ -34,7 +34,7 @@ describe("parseReleaseTag", () => {
3434
const releaseTagWithoutPackageWithSuffix = "v1.0.0-alpha.1";
3535
const parsedReleaseTagWithoutPackageWithSuffix = parseReleaseTag(releaseTagWithoutPackageWithSuffix);
3636
expect(parsedReleaseTagWithoutPackageWithSuffix).deep.equal({
37-
packageName: undefined,
37+
packageName: "realm",
3838
packageVersion: "1.0.0",
3939
packageVersionSuffix: "-alpha.1",
4040
prerelease: true,

0 commit comments

Comments
 (0)