Skip to content

Commit

Permalink
chore: switch yarn to pnpm (#32)
Browse files Browse the repository at this point in the history
* chore: set packageManager

* chore: switch `yarn` to `pnpm`

* chore: remove `husky`, `lint-staged`

* ci: fixed pnpm version

* build: fix esbuild bundling node builtins

* chore: type fixes
  • Loading branch information
AriPerkkio committed Jun 1, 2024
1 parent c0213f3 commit 81744de
Show file tree
Hide file tree
Showing 9 changed files with 27,452 additions and 7,396 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,23 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: yarn build
- run: yarn test
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install & Build
run: |
pnpm install
pnpm build
- name: Test
run: |
pnpm typecheck
pnpm lint
pnpm test
20 changes: 16 additions & 4 deletions .github/workflows/update-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,22 @@ jobs:
runs-on: ubuntu-latest
name: Update dist/index.js
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: yarn build
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install & Build
run: |
pnpm install
pnpm build
- name: Push updates
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(build): update dist/index.js"
commit_message: 'chore(build): update dist/index.js'

0 comments on commit 81744de

Please sign in to comment.