mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-21 07:26:21 -05:00
Enable Build Provenance for Nightly Builds
Maybe. This is pretty difficult (impossible?) to test outside of the CI environment itself. Ostensibly, this is all we should need for github actions, though. cc @DanielRosenwasser who wanted to know what it'd take to enable this. For nightlies, at least, it's in theory not bad. For actual releases, it's likely a bit more complex, given our publishing and releasing pipeline.
This commit is contained in:
3
.github/workflows/nightly.yaml
vendored
3
.github/workflows/nightly.yaml
vendored
@@ -8,6 +8,7 @@ on:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
# Ensure scripts are run with pipefail. See:
|
||||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
|
||||
@@ -60,6 +61,6 @@ jobs:
|
||||
npx hereby configure-nightly
|
||||
npx hereby LKG
|
||||
node ./scripts/addPackageJsonGitHead.mjs package.json
|
||||
npm publish --tag next
|
||||
npm publish --provenance --access public --tag next
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||
|
||||
Reference in New Issue
Block a user