diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c42b432..46ff246 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} env: CI: true - NODE_VERSION: "20.x" - PNPM_CACHE_FOLDER: .pnpm-store + NODE_VERSION: 20 jobs: test: @@ -23,33 +22,28 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code repository - uses: actions/checkout@v3 - with: - fetch-depth: 0 + uses: actions/checkout@v4 - name: setup node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - - name: install pnpm - run: npm i pnpm@latest -g - - - name: Setup npmrc - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc - - - name: setup pnpm config - run: pnpm config set store-dir $PNPM_CACHE_FOLDER + - uses: pnpm/action-setup@v3 + name: Install pnpm + with: + version: 8 + run_install: false - - name: install dependencies + - name: Install dependencies run: pnpm install - name: create and publish versions uses: changesets/action@v1 with: version: pnpm ci:version - commit: "chore: update versions" - title: "chore: update versions" + commit: ":memo: chore: update versions" + title: ":memo: chore: update versions" publish: pnpm ci:publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}