diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2b82d1d..b61508f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,8 @@ jobs: needs: [ compile ] if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') runs-on: ubuntu-latest + permissions: + id-token: write steps: - name: Checkout repo @@ -35,8 +37,4 @@ jobs: run: yarn build - name: Publish to npm - run: | - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} - npm publish --access public - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + run: npx -y npm@latest publish --access public \ No newline at end of file