Skip to content

Commit

Permalink
chore: migrated from Yarn to PNPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Pkmmte committed Dec 16, 2022
1 parent d90d20d commit 1a890f2
Show file tree
Hide file tree
Showing 2 changed files with 6,145 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,30 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Read Node.js version to install from `.nvmrc`
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm

- uses: pnpm/[email protected]
with:
version: 7

- name: Install required Node.js version
uses: actions/setup-node@v1
with:
cache: 'pnpm'
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- name: Get Yarn cache directory path
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Setup cache key and directory for node_modules cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Yarn install
run: yarn --frozen-lockfile

- name: PNPM install
run: pnpm install --frozen-lockfile

- name: Build
run: yarn build
run: pnpm build

- name: Release
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta')
run: yarn semantic-release
run: pnpm semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 1a890f2

Please sign in to comment.