We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5981055 commit 513ba69Copy full SHA for 513ba69
1 file changed
.github/workflows/npm-publish.yml
@@ -9,6 +9,14 @@ on:
9
description: Release tag to publish
10
required: true
11
default: v0.3.0
12
+ provenance:
13
+ description: Publish with npm provenance
14
+ required: true
15
+ default: "true"
16
+ type: choice
17
+ options:
18
+ - "true"
19
+ - "false"
20
21
permissions:
22
contents: read
@@ -50,4 +58,11 @@ jobs:
50
58
run: deno task pack:release
51
59
52
60
- name: Publish npm package
53
- run: npm publish ./*.tgz --access public
61
+ env:
62
+ NPM_PROVENANCE: ${{ inputs.provenance || 'true' }}
63
+ run: |
64
+ if [ "${NPM_PROVENANCE}" = "false" ]; then
65
+ npm publish ./*.tgz --access public --provenance=false
66
+ else
67
+ npm publish ./*.tgz --access public
68
+ fi
0 commit comments