diff --git a/.github/workflows/changeset.yaml b/.github/workflows/changeset.yaml index 0fe82493..716c8647 100644 --- a/.github/workflows/changeset.yaml +++ b/.github/workflows/changeset.yaml @@ -27,13 +27,17 @@ jobs: node-version: '21' registry-url: 'https://registry.npmjs.org/' scope: '@valiantlynx' - + - name: Install Dependencies run: yarn - name: Build run: yarn build && yarn package + - name: Configure .npmrc for Publishing + run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc + - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1 @@ -41,7 +45,5 @@ jobs: publish: yarn release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # The NPM_TOKEN is now only necessary if the publish script or any other step explicitly requires it, - # but the setup-node action has already configured npm authentication globally for this job. NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}