Skip to content

Commit cc4070d

Browse files
authored
chore(release): provide permissions for prod provenance (#34)
prior to this commit, we'd get an error trying to publish to npm using the `latest` tag with the following error: ``` npm notice Publishing to https://registry.npmjs.org/ with tag latest and default access npm ERR! code EUSAGE npm ERR! Provenance generation in GitHub Actions requires “write” access to the “id-token” permission npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-03-25T20_09_08_269Z-debug-0.log ``` this ought to fix the issue, using the same permissions that we use in stencil core today
1 parent 95416d0 commit cc4070d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release-production.yml

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
name: Publish Stencil Playwright (Production)
2222
needs: [ build_stencil_playwright ]
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: write
26+
id-token: write
2427
steps:
2528
# Log the input from GitHub Actions for easy traceability
2629
- name: Log GitHub Workflow UI Input

0 commit comments

Comments
 (0)