Skip to content

Commit

Permalink
tech: migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Izhaki committed Nov 15, 2023
1 parent 722aaf2 commit 662eb89
Show file tree
Hide file tree
Showing 4 changed files with 6,554 additions and 8,156 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,26 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 14.18.3
cache: 'yarn'
node-version: 16.14
cache: 'pnpm'

- name: Install dependencies
run: yarn --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Build
run: yarn build
run: pnpm build

- name: Test
run: yarn test
run: pnpm test

- name: Publish
if: github.ref == 'refs/heads/master'
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
],
"scripts": {
"lint": "eslint .",
"test": "npm run test:webpack4 && npm run test:webpack5",
"test:webpack4": "yarn add webpack@^4.46.0 --dev && cucumber-js",
"test:webpack5": "yarn add webpack@^5.73.0 --dev && cucumber-js",
"test": "pnpm run test:webpack4 && npm run test:webpack5",
"test:webpack4": "pnpm add webpack@^4.46.0 --save-dev && cucumber-js",
"test:webpack5": "pnpm add webpack@^5.73.0 --save-dev && cucumber-js",
"test:only": "cucumber-js --tags @only",
"build": "npm run lint && rimraf dist/ && babel src/ --out-dir dist/",
"build": "pnpm run lint && rimraf dist/ && babel src/ --out-dir dist/",
"watch": "rimraf dist/ && babel src/ --watch --out-dir dist/",
"prettier:fix": "prettier '{**/,}*.{js,jsx,ts,tsx,json,scss,css,md,html,yaml,yml}' --ignore-path=.gitignore --write",
"semantic-release": "semantic-release"
Expand Down Expand Up @@ -76,7 +76,7 @@
"tmp": "^0.2.1",
"tree-kill": "^1.2.2",
"typescript": "^4.7.4",
"webpack": "^5.73.0",
"webpack": "^5.89.0",
"webpack-cli": "^4.3.1",
"webpack-node-externals": "2.5.2"
},
Expand Down
Loading

0 comments on commit 662eb89

Please sign in to comment.