Skip to content

Commit

Permalink
Migrate to pnpm (#233)
Browse files Browse the repository at this point in the history
* Migrate to pnpm

* Fix

* Fix
  • Loading branch information
int128 authored Mar 2, 2024
1 parent 8020bd5 commit 4619f47
Show file tree
Hide file tree
Showing 6 changed files with 5,759 additions and 6,125 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
cache: yarn
- run: yarn
- run: yarn build
- run: yarn package
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm build
- uses: int128/release-typescript-action@f057c1399c41e922268a3d9036966d74e8341a15 # v1.28.0
18 changes: 10 additions & 8 deletions .github/workflows/ts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- src/**
- tests/**
- '*.json'
- '*.lock'
- action.yaml
- .github/workflows/ts.yaml
push:
Expand All @@ -15,6 +16,7 @@ on:
- src/**
- tests/**
- '*.json'
- '*.lock'
- action.yaml
- .github/workflows/ts.yaml

Expand All @@ -27,10 +29,10 @@ jobs:
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
cache: yarn
- run: yarn
- run: yarn test
- run: yarn build
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm test
- run: pnpm build

generate:
runs-on: ubuntu-latest
Expand All @@ -43,8 +45,8 @@ jobs:
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
cache: yarn
- run: yarn
- run: yarn lint --fix
- run: yarn format
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm lint --fix
- run: pnpm format
- uses: int128/update-generated-files-action@1bf39f3aec4afa88c0c7060cdb0d88332c052991 # v2.48.0
7 changes: 3 additions & 4 deletions .github/workflows/wait-for-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ jobs:
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
cache: yarn
- run: yarn
- run: yarn build
- run: yarn package
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm build
- name: Run int128/wait-for-workflows-action
uses: ./
with:
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"private": true,
"main": "lib/src/main.js",
"scripts": {
"build": "tsc",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint **/*.ts",
"package": "ncc build --source-map --license licenses.txt",
"build": "ncc build --source-map --license licenses.txt src/main.ts",
"test": "jest",
"graphql-codegen": "graphql-codegen --config graphql-codegen.yaml",
"check": "yarn graphql-codegen && yarn format && yarn lint && yarn test"
Expand Down
Loading

0 comments on commit 4619f47

Please sign in to comment.