Skip to content

Commit

Permalink
Migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed Mar 2, 2024
1 parent ea1e503 commit 0825e4e
Show file tree
Hide file tree
Showing 6 changed files with 5,724 additions and 6,304 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
- uses: actions/setup-node@v4
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@v1
25 changes: 12 additions & 13 deletions .github/workflows/ts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
- src/**
- tests/**
- '*.json'
- action.yaml
- '*.yaml'
- .github/workflows/ts.yaml
pull_request:
branches: [main]
paths:
- src/**
- tests/**
- '*.json'
- action.yaml
- '*.yaml'
- .github/workflows/ts.yaml

jobs:
Expand All @@ -26,13 +26,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn
- run: yarn lint
- run: yarn format-check
- run: yarn test
- run: yarn build
- run: yarn package
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm lint
- run: pnpm format-check
- run: pnpm test
- run: pnpm build

- if: github.event_name == 'pull_request'
uses: actions/github-script@v7
Expand Down Expand Up @@ -82,8 +81,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn
- run: yarn format
- run: yarn graphql-codegen
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm format
- run: pnpm graphql-codegen
- uses: int128/update-generated-files-action@v2
7 changes: 2 additions & 5 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 All @@ -22,7 +19,7 @@
"@graphql-codegen/typescript": "4.0.6",
"@graphql-codegen/typescript-operations": "4.2.0",
"@octokit/graphql-schema": "14.58.0",
"@tsconfig/node16": "16.1.1",
"@tsconfig/node20": "20.1.2",
"@types/jest": "29.5.12",
"@types/node": "20.11.24",
"@typescript-eslint/eslint-plugin": "7.1.0",
Expand Down
Loading

0 comments on commit 0825e4e

Please sign in to comment.