diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3e39728..a202a8a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,10 @@ on: release: types: [created] +permissions: + id-token: write + contents: read + jobs: publish: runs-on: ubuntu-latest @@ -15,7 +19,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: 20 + node-version: 22 cache: 'npm' registry-url: 'https://registry.npmjs.org' @@ -30,5 +34,3 @@ jobs: - name: Publish to npm run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}