diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 6b63922..e2b515f 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -12,14 +12,17 @@ jobs: steps: - name: Release Please - uses: google-github-actions/release-please-action@v4 + uses: googleapis/release-please-action@v4 + id: release with: release-type: node - id: release publish: - needs: release-please runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + needs: release-please if: ${{ needs.release-please.outputs.release_created }} steps: @@ -29,12 +32,13 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: + node-version-file: .nvmrc registry-url: https://registry.npmjs.org - name: Install dependencies - run: npm install + run: npm ci --prefer-offline - name: Publish - run: npm publish + run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}