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..d8e776d 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,9 @@ "website": "https://iodigital.com" }, "license": "proprietary", + "repository": { + "url": "https://github.com/iodigital-com/criticalcss" + }, "dependencies": { "critical": "^4.0.1" },