From 8a01093f32ec738b0f2e57bfade1f4ced3689092 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Mon, 17 Jun 2024 22:58:23 -0700 Subject: [PATCH] build: tweak changeset action (#223) --- .github/workflows/changeset.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/changeset.yaml b/.github/workflows/changeset.yaml index 808b5aa05..058fe8829 100644 --- a/.github/workflows/changeset.yaml +++ b/.github/workflows/changeset.yaml @@ -12,19 +12,16 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: setup node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20 - - name: install pnpm - run: npm i pnpm@latest -g - - name: Setup npmrc - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc + - run: corepack enable - name: setup pnpm config run: pnpm config set store-dir $PNPM_CACHE_FOLDER - name: install dependencies @@ -38,4 +35,5 @@ jobs: title: "chore: update versions" publish: pnpm publish -r env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file