Skip to content

Commit 950726b

Browse files
committed
explicitly specify release tags
1 parent eec47c4 commit 950726b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ test:
44

55
test-all:
66
npm ci
7-
npm publish --dry-run
7+
npm publish --dry-run --tag "$(shell node --experimental-strip-types tools/get-release-tag.mjs)"
88

99
publish: validate-git-status
10-
npm publish
10+
npm publish --tag "$(shell node --experimental-strip-types tools/get-release-tag.mjs)"
1111
git push origin main
1212
git push origin --tags
1313

tools/get-release-tag.mjs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
import packageJson from "../package.json" with { type: "json" };
3+
4+
const matched = /-(beta|rc)\d+$/.exec(packageJson.version);
5+
console.log(matched[1] ?? "latest");

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
5555
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
5656
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
57+
"resolveJsonModule": true,
5758
"forceConsistentCasingInFileNames": true
5859

5960
// "erasableSyntaxOnly": true

0 commit comments

Comments
 (0)