From e4ab0cd9c8ab028847865304b8c28e11f98f4d3b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 29 Oct 2025 10:38:48 +0000 Subject: [PATCH] Use NPM Trusted Publishers over token due to security changes being enacted next month by npm --- .github/workflows/release.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a53fe59a..01953186 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,6 +12,9 @@ jobs: defaults: run: working-directory: packages/npm + permissions: + contents: read + id-token: write steps: - name: 🧮 Checkout code uses: actions/checkout@v4 @@ -33,10 +36,4 @@ jobs: VERSION: ${{ github.event.release.tag_name }}.0 - name: 🚀 Publish to npm - id: npm-publish - uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1 - with: - token: ${{ secrets.NPM_TOKEN }} - package: packages/npm - access: public - ignore-scripts: false + run: npm publish --provenance --access public --tag latest