From 3ea6895e8ceb573a65be5b09ede9c67d5aa0aa3e Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 10 Mar 2022 14:38:32 -0800 Subject: [PATCH] Meta: biblio: add `commit` field to package.json every publish (#2689) --- biblio/package.json | 1 + scripts/publish-biblio.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/biblio/package.json b/biblio/package.json index 8abd2b2eed..31ec63fc83 100644 --- a/biblio/package.json +++ b/biblio/package.json @@ -1,6 +1,7 @@ { "name": "@tc39/ecma262-biblio", "version": "VERSIONED-DURING-PUBLISH", + "commit": "POPULATED-DURING-PUBLISH", "description": "Machine-readable representation of the internals of the ecma-262 spec", "keywords": [ "ecmascript" diff --git a/scripts/publish-biblio.sh b/scripts/publish-biblio.sh index 46cae7c82d..0bf67d5f69 100755 --- a/scripts/publish-biblio.sh +++ b/scripts/publish-biblio.sh @@ -17,4 +17,6 @@ LONG_COMMIT=$(git rev-parse --verify HEAD) echo " This version was built from commit [${SHORT_COMMIT}](https://github.com/tc39/ecma262/tree/${LONG_COMMIT})." >> README.md +npm pkg set commit="${LONG_COMMIT}" + npm publish --access public