diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f934f2c..1a80bae 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 @@ -14,8 +17,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '18' - cache: 'npm' + node-version: '24' registry-url: 'https://registry.npmjs.org' - name: Validate version @@ -57,5 +59,3 @@ jobs: - name: Publish to npm run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}