From 6917544a408c59cab3c7fc76c4bc05ed18c676e8 Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Tue, 25 Apr 2023 13:45:17 +0100 Subject: [PATCH] chore: Set up publish with npm provenance --- .changeset/slimy-trains-wink.md | 5 +++++ .github/workflows/release.yml | 10 +++++++++- package.json | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .changeset/slimy-trains-wink.md diff --git a/.changeset/slimy-trains-wink.md b/.changeset/slimy-trains-wink.md new file mode 100644 index 0000000..deaa214 --- /dev/null +++ b/.changeset/slimy-trains-wink.md @@ -0,0 +1,5 @@ +--- +'wonka': patch +--- + +Publish with npm provenance diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c29fd2..033babb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,14 @@ jobs: name: Release runs-on: ubuntu-20.04 timeout-minutes: 20 + permissions: + contents: write + id-token: write + issues: write + repository-projects: write + deployments: write + packages: write + pull-requests: write steps: - name: Checkout Repo uses: actions/checkout@v3 @@ -22,7 +30,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v2.2.2 with: - version: 7 + version: 8 run_install: false - name: Get pnpm store directory diff --git a/package.json b/package.json index 5201e21..bc72275 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,9 @@ "./scripts/eslint-preset.js" ] }, + "publishConfig": { + "provenance": true + }, "devDependencies": { "@changesets/cli": "^2.26.0", "@changesets/get-github-info": "0.5.0",