chore(ci): enable npm package provenance (#27263)

See https://github.blog/2023-04-19-introducing-npm-package-provenance/
This commit is contained in:
Lars Mikkelsen
2023-04-24 07:04:10 -06:00
committed by GitHub
parent ad02058ef3
commit d425e6d4f3
13 changed files with 19 additions and 10 deletions

View File

@@ -22,6 +22,9 @@ runs:
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install latest npm
run: npm install -g npm@latest
shell: bash
- name: Install Dependencies
run: lerna bootstrap --include-dependencies --scope ${{ inputs.scope }} --ignore-scripts -- --legacy-peer-deps
shell: bash
@@ -41,6 +44,6 @@ runs:
env:
NPM_TOKEN: ${{ inputs.token }}
- name: Publish to NPM
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }}
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }} --provenance
shell: bash
working-directory: ${{ inputs.working-directory }}