diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26887ec..615ba7b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,11 @@ on: jobs: release: runs-on: 'ubuntu-latest' + permissions: + contents: 'write' + issues: 'write' + pull-requests: 'write' + id-token: 'write' steps: - uses: 'actions/checkout@v3.5.2' with: @@ -22,6 +27,9 @@ jobs: - name: 'Install dependencies' run: 'npm clean-install' + - name: 'Verify the integrity of provenance attestations and registry signatures for installed dependencies' + run: 'npm audit signatures' + - name: 'Release' run: 'npm run release' env: diff --git a/.npmrc b/.npmrc index cffe8cd..3da3cf4 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ save-exact=true +provenance=true diff --git a/package.json b/package.json index 9615bb5..710f5f6 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,10 @@ "files": [ "src" ], + "publishConfig": { + "access": "public", + "provenance": true + }, "engines": { "node": ">=16.0.0", "npm": ">=9.0.0"