Skip to content

Commit

Permalink
feat: migrate to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
ooliver1 committed May 30, 2022
1 parent da61623 commit 6e12b0f
Show file tree
Hide file tree
Showing 5 changed files with 3,006 additions and 3,194 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,14 @@ jobs:
with:
node-version: 16

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Yarn install cache
uses: c-hive/gha-yarn-cache@v1

- name: Install dependencies
run: pnpm install
run: yarn install

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

- name: Push build to GitHub
uses: EndBug/add-and-commit@v9
Expand All @@ -49,7 +32,7 @@ jobs:
default_author: github_actions

- name: Test project
run: pnpm run test
run: yarn test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
6 changes: 3 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 6e12b0f

Please sign in to comment.