Skip to content

Commit 513ba69

Browse files
committed
chore(ci): allow manual publish without provenance
1 parent 5981055 commit 513ba69

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/npm-publish.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ on:
99
description: Release tag to publish
1010
required: true
1111
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"
1220

1321
permissions:
1422
contents: read
@@ -50,4 +58,11 @@ jobs:
5058
run: deno task pack:release
5159

5260
- 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

Comments
 (0)