From 90bc0e3f488dd5fa021555df24c06002a5db7747 Mon Sep 17 00:00:00 2001 From: Jim Blanchard Date: Fri, 21 Jun 2024 12:24:38 -0500 Subject: [PATCH] chore: Add meta-data to core to ensure it is always released (#13526) * chore: Add meta-data to core to ensure it is always released. * Ignore metadata file from license check. --- license_config.json | 3 ++- package.json | 3 ++- packages/core/metadata | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 packages/core/metadata diff --git a/license_config.json b/license_config.json index eb706af57ea..ce82dd294f3 100644 --- a/license_config.json +++ b/license_config.json @@ -39,7 +39,8 @@ "**/.rollup.cache", "**/rollup.config.mjs", "rollup", - ".husky" + ".husky", + "packages/core/metadata" ], "ignoreFile": ".gitignore", "license": "license_header.txt", diff --git a/package.json b/package.json index 7970a9f5d26..7c52ae1b2ef 100644 --- a/package.json +++ b/package.json @@ -28,9 +28,10 @@ "unlink-all": "lerna exec --no-bail --parallel -- yarn unlink; exit 0", "publish:preid": "./scripts/preid-env-vars-exist.sh && lerna publish --canary --force-publish --dist-tag=${PREID_PREFIX} --preid=${PREID_PREFIX}${PREID_HASH_SUFFIX} --yes", "publish:main": "lerna publish --canary --force-publish --dist-tag=unstable --preid=unstable${PREID_HASH_SUFFIX} --yes", - "publish:release": "lerna publish --conventional-commits --message 'chore(release): Publish [skip release]' --yes", + "publish:release": "yarn generate-metadata && lerna publish --conventional-commits --message 'chore(release): Publish [skip release]' --yes", "publish:v5-stable": "lerna publish --conventional-commits --yes --dist-tag=stable-5 --message 'chore(release): Publish [ci skip]' --no-verify-access", "publish:verdaccio": "lerna publish --canary --force-publish --no-push --dist-tag=unstable --preid=unstable --yes", + "generate-metadata": "git rev-parse --short HEAD > packages/core/metadata && git commit -am 'chore: set core metadata [skip release]'", "ts-coverage": "lerna run ts-coverage", "prepare": "husky && ./scripts/set-preid-versions.sh" }, diff --git a/packages/core/metadata b/packages/core/metadata new file mode 100644 index 00000000000..6e07c1f3004 --- /dev/null +++ b/packages/core/metadata @@ -0,0 +1 @@ +9d9192371