Add gitHead to package.json in all release workflows (#58135)

This commit is contained in:
Jake Bailey
2024-04-19 15:54:56 -07:00
committed by GitHub
parent e62418e868
commit c50ec7952c
7 changed files with 29 additions and 3 deletions

View File

@@ -154,6 +154,7 @@ jobs:
- run: npx hereby lkg
- run: |
node ./scripts/addPackageJsonGitHead.mjs package.json
npm pack
mv typescript*.tgz typescript.tgz
echo "package=$PWD/typescript.tgz" >> "$GITHUB_OUTPUT"

View File

@@ -59,6 +59,7 @@ jobs:
npm ci
npx hereby configure-insiders
npx hereby LKG
node ./scripts/addPackageJsonGitHead.mjs package.json
npm publish --tag insiders
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

View File

@@ -59,6 +59,7 @@ jobs:
npm ci
npx hereby configure-nightly
npx hereby LKG
node ./scripts/addPackageJsonGitHead.mjs package.json
npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

View File

@@ -40,6 +40,7 @@ jobs:
run: |
npx hereby LKG
npx hereby clean
node ./scripts/addPackageJsonGitHead.mjs package.json
npm pack ./
mv typescript-*.tgz typescript.tgz
- name: Upload built tarfile