From d168174193897d843ad401fadfc328f85eef061d Mon Sep 17 00:00:00 2001 From: Kyle Hensel Date: Thu, 9 May 2024 20:18:58 +1000 Subject: [PATCH] set up npm provenance --- .github/workflows/test.yml | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 876ea41..62a2556 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,8 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest + permissions: + id-token: write strategy: matrix: diff --git a/package.json b/package.json index 1d2f233..c592864 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "unit-tests": "jest -i", "test": "npm run lint && npm run build && npm run unit-tests", "prepublishOnly": "tsc", - "trypublish": "npm publish || true" + "trypublish": "npm publish --provenance || true" }, "main": "dist", "types": "dist/index.d.ts",