Skip to content

Commit

Permalink
chore: update scripts for pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 25, 2024
1 parent 1990d52 commit 3d5dadc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm

- name: install, build, test
run: |
yarn --frozen-lockfile
yarn build
yarn test
pnpm i
pnpm build
pnpm test
env:
CI: true
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
]
},
"scripts": {
"build": "yarn workspaces run build",
"build:main": "yarn workspace beasties run build",
"build:webpack": "yarn workspace beasties-webpack-plugin run build",
"docs": "yarn workspaces run docs",
"build": "pnpm -r build",
"build:main": "pnpm --filter beasties run build",
"build:webpack": "pnpm --filter beasties-webpack-plugin run build",
"docs": "pnpm -r docs",
"release": "npm run build -s && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish",
"test": "vitest --coverage"
},
Expand Down

0 comments on commit 3d5dadc

Please sign in to comment.