Skip to content

Commit

Permalink
feat: migrate to pnpm (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
tusbar committed Aug 5, 2023
1 parent 1b3f49c commit 4b95203
Show file tree
Hide file tree
Showing 6 changed files with 6,011 additions and 7,902 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@ jobs:
with:
token: ${{ secrets.GH_PAT }}

- uses: pnpm/action-setup@v2
with:
version: "latest"

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache: pnpm

- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --prefer-offline
run: pnpm install --frozen-lockfile

- name: Run semantic release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
run: yarn semantic-release
run: pnpm semantic-release
20 changes: 14 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@ jobs:
- name: Git checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: "latest"

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache: pnpm

- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --prefer-offline
run: pnpm install --frozen-lockfile

- name: Run linter
run: yarn xo
run: pnpm xo

test:
name: Run tests
Expand All @@ -34,17 +38,21 @@ jobs:
- name: Git checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: "latest"

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache: pnpm

- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --prefer-offline
run: pnpm install --frozen-lockfile

- name: Run tests
run: yarn test --runInBand --ci --reporters=default --reporters=github-actions
run: pnpm test -- --runInBand --ci --reporters=default --reporters=github-actions

- name: Upload code coverage to codecov
uses: codecov/codecov-action@v3
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Logs
*.log
npm-debug.log*
CHANGELOG.md

# Cache
.yarn-cache
.npm
.eslintcache
.changelog

Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
Loading

0 comments on commit 4b95203

Please sign in to comment.