Skip to content

Commit

Permalink
chore!: use pnpm instead of yarn (w3c#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Oct 8, 2022
1 parent fda900a commit 3fb0c16
Show file tree
Hide file tree
Showing 8 changed files with 713 additions and 663 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- "action.yml"
- "tsconfig.json"
- "package.json"
- "yarn.lock"
- "pnpm-lock.yaml"
- ".github/workflows/**"

env:
Expand All @@ -20,10 +20,13 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: yarn
- run: yarn
- run: yarn lint
- run: yarn build --noEmit
node-version: 16
cache: pnpm
- run: pnpm i
- run: pnpm lint
- run: pnpm build --noEmit
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ python_modules
.vscode
*.js
*.map
package-lock.json
yarn.lock
*.log
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# copied from .gitignore
# https://github.com/prettier/prettier/issues/8048
node_modules
python_modules
.vscode
*.js
*.map
package-lock.json
yarn.lock
*.log

# actual .prettierignore
pnpm-lock.yaml
11 changes: 7 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,22 @@ inputs:
runs:
using: composite
steps:
- uses: pnpm/[email protected]
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Set up action
run: |
echo "::group::Set up action"
yarn --cwd ${{ github.action_path }} --ignore-optional
yarn --cwd ${{ github.action_path }} build
pnpm -C ${{ github.action_path }} install --no-optional
pnpm -C ${{ github.action_path }} build
echo "::endgroup::"
shell: bash
env:
FORCE_COLOR: true
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
FORCE_COLOR: "true"
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "1"
- name: Prepare
id: prepare
run: |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"build": "tsc -p tsconfig.prod.json",
"dev": "tsc -p tsconfig.json -w",
"lint": "prettier . --ignore-path .gitignore --check"
"lint": "prettier . --check"
},
"devDependencies": {
"@types/finalhandler": "^1.2.0",
Expand Down
Loading

0 comments on commit 3fb0c16

Please sign in to comment.