diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4733630..138fe56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,16 +21,20 @@ jobs: publish-npm: name: Publish to npm runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v7 - uses: actions/setup-node@v7 with: - node-version: 20 + node-version: 24 registry-url: https://registry.npmjs.org + # Trusted publishing (OIDC) requires npm >= 11.5.1 + - run: npm install -g npm@latest + - run: npm install - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + - run: npm publish \ No newline at end of file