From 5d6afd4d9b2333f21244439ec8aec8422abccb11 Mon Sep 17 00:00:00 2001 From: Mischa Braam Date: Thu, 5 Sep 2024 10:44:05 +0200 Subject: [PATCH] Change to public provenance npm publish --- .github/workflows/npm-publish.yml | 5 ++++- package.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 09ec5de..40d14b2 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -9,12 +9,15 @@ on: jobs: publish-npm: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 registry-url: https://registry.npmjs.org/ - - run: npm publish + - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index e38ffd5..51258d8 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "website": "https://iodigital.com" }, "license": "proprietary", + "repository.url": "https://github.com/iodigital-com/criticalcss", "dependencies": { "critical": "^4.0.1" },