diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 32d417f..2eac400 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,9 @@ on: jobs: publish: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -14,6 +17,6 @@ jobs: node-version: 20.x registry-url: https://registry.npmjs.org/ - run: npm ci - - run: npm publish + - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} \ No newline at end of file