From e0d7623928d0b8f9bc12678c93d87dbbc6e38fa9 Mon Sep 17 00:00:00 2001 From: monosans Date: Thu, 29 Aug 2024 13:12:24 +0300 Subject: [PATCH] Fix npm publishing --- .github/workflows/publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 71fbe617..f7f7f9c2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,11 +19,13 @@ jobs: publish-npm: runs-on: ubuntu-latest if: ${{ github.repository_owner == 'djlint' }} + permissions: + id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - registry-url: "https://registry.npmjs.org" + registry-url: 'https://registry.npmjs.org' - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}