diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccb7fa28..4efa88b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: node-version: 18.x - uses: pnpm/action-setup@v2 with: - version: 8.0.0 + version: 8.x.x - name: run unit tests run: | pnpm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 656f2737..3657916b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,6 @@ on: env: CI: true - PNPM_CACHE_FOLDER: .pnpm-store jobs: release: @@ -25,12 +24,9 @@ jobs: with: node-version: 18.x - - 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@v2 + with: + version: 8.x.x - name: install dependencies run: pnpm install - name: create and publish versions @@ -41,14 +37,5 @@ jobs: title: 'chore: update versions' publish: pnpm ci:publish env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - - - name: Create Release Pull Request or Publish to npm - id: changesets - uses: changesets/action@master - with: - # This expects you to have a script called release which does a build for your packages and calls changeset publish - version: yarn version-packages - publish: yarn release - env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}