diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 1ff416c..f9f5a2b 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -2,26 +2,27 @@ name: Publish to NPM Registry on: release: types: [created] +permissions: + id-token: write # Required for OIDC + contents: read jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout uses: actions/checkout@v4 - name: Setup Node uses: actions/setup-node@v4 with: - registry-url: 'https://registry.npmjs.org' - + node-version: "24" + registry-url: "https://registry.npmjs.org" + - name: Install dependencies run: npm install - name: Create build run: npm run build - - name: Publish package on NPM 📦 + - name: Publish package on NPM 📦 run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file