diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 835d5b0..17c37e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,11 +19,19 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - registry-url: "https://registry.npmjs.org" - name: Install Dependencies run: yarn install + - name: Configure npm + run: | + cat << EOF > "$HOME/.npmrc" + auto-install-peers = true + //registry.npmjs.org/:_authToken=$NPM_TOKEN + EOF + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1 @@ -33,4 +41,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}