diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da6c1b7..bf14dea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,15 @@ jobs: - name: Install Dependencies run: yarn + - name: Creating .npmrc + 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 diff --git a/.npmrc b/.npmrc deleted file mode 100644 index b909d06..0000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -auto-install-peers = true -//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN} \ No newline at end of file