Skip to content

Commit

Permalink
feat: Add npm provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed Apr 19, 2023
1 parent 8137934 commit ee76005
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release-please.yml
Expand Up @@ -6,6 +6,7 @@ on:
permissions:
contents: write
pull-requests: write
id-token: write

name: release-please

Expand All @@ -29,6 +30,10 @@ jobs:
node-version: "16.x"
registry-url: 'https://registry.npmjs.org'

- name: Latest NPM
if: ${{ steps.release-please.outputs.release_created }}
run: npm install -g npm@latest

- name: Upload release assets
if: ${{ steps.release-please.outputs.release_created }}
run: |
Expand Down
3 changes: 2 additions & 1 deletion packages/lib/package.json
Expand Up @@ -77,7 +77,8 @@
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
"registry": "https://registry.npmjs.org/",
"provenance": true
}
}

3 changes: 2 additions & 1 deletion packages/mermaid-electron-renderer/package.json
Expand Up @@ -37,6 +37,7 @@
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
"registry": "https://registry.npmjs.org/",
"provenance": true
}
}

0 comments on commit ee76005

Please sign in to comment.