From 50c0b0077e2000af8e46f9a047d636bca545f74d Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Thu, 26 Dec 2024 14:01:27 -0500 Subject: [PATCH] build: enable provenance --- .github/workflows/release.yml | 7 +++++++ package.json | 3 +++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1c6404..154a5b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,13 @@ name: Release push: branches: - main + +# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance +permissions: + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + id-token: write # to enable use of OIDC for npm provenance jobs: release: name: release diff --git a/package.json b/package.json index 69179d0..1d7de9e 100644 --- a/package.json +++ b/package.json @@ -22,5 +22,8 @@ "branches": [ "main" ] + }, + "publishConfig": { + "provenance": true } }