From 0d16083377b2cb5d16ed28f1d79d41eeb5b3defc Mon Sep 17 00:00:00 2001 From: Din Date: Mon, 8 Apr 2024 20:06:41 +0700 Subject: [PATCH] ci: fix doesn't create github releases 7 --- .github/workflows/main.yaml | 12 ++++++------ .github/workflows/pr-release.yaml | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) 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: |