diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0c8a078..f75e0e3 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -40,13 +40,13 @@ jobs: - uses: pnpm/action-setup@v3 - - run: pnpm i - - name: NPM registry authentication - run: pnpm config set -g '//registry.npmjs.org/:_authToken' \"${NPM_TOKEN}\" + run: pnpm config set '//registry.npmjs.org/:_authToken' \"${NPM_TOKEN}\" env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: pnpm i + - name: Changesets version or deploy and publish on @latest id: changesets uses: changesets/action@v1 @@ -73,13 +73,13 @@ jobs: - uses: pnpm/action-setup@v3 - - run: pnpm i - - name: NPM registry authentication - run: pnpm config set -g '//registry.npmjs.org/:_authToken' \"${NPM_TOKEN}\" + run: pnpm config set '//registry.npmjs.org/:_authToken' \"${NPM_TOKEN}\" env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: pnpm i + - run: pnpm changeset version --snapshot next env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr-release.yaml b/.github/workflows/pr-release.yaml index c5b1197..7cae940 100644 --- a/.github/workflows/pr-release.yaml +++ b/.github/workflows/pr-release.yaml @@ -17,13 +17,13 @@ jobs: - uses: pnpm/action-setup@v3 - - run: pnpm i - - name: NPM registry authentication - run: pnpm config set -g '//registry.npmjs.org/:_authToken' \"${NPM_TOKEN}\" + run: pnpm config set '//registry.npmjs.org/:_authToken' \"${NPM_TOKEN}\" env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: pnpm i + - name: Context vars id: vars run: |