diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9196ce34..ab95d234 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,10 +5,10 @@ on: jobs: build: runs-on: ubuntu-latest + environment: npm-publish permissions: contents: read id-token: write - packages: write steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 @@ -28,10 +28,5 @@ jobs: - name: Build run: npm run build - - name: Set the NPM registry with token - run: | - echo "registry=https://registry.npmjs.org/" > .npmrc - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc - - name: Publish on NPM run: npm publish --scope=@internxt --access public