Skip to content

Commit c1b6b76

Browse files
committed
ci: 💚 move ci to pnpm to hopefully make them work again
1 parent 854cbcb commit c1b6b76

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

.github/workflows/dev-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@master
11+
- uses: pnpm/action-setup@v4
1112
- name: Get secrets
1213
run: |
1314
cd config
@@ -16,15 +17,15 @@ jobs:
1617
1718
- name: esbuild
1819
run: |
19-
npm i
20-
npm run-script ci-build
20+
pnpm i
21+
pnpm run ci-build
2122
# Remove gitignore rule for public folder
2223
sed -i 's/public\///' .gitignore
2324
2425
- name: Start server
2526
run: |
2627
cd public
27-
npx http-server --port 8080 &
28+
pnpx http-server --port 8080 &
2829
2930
- name: Audit URLs using Lighthouse
3031
uses: treosh/lighthouse-ci-action@v3

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@master
1111
- uses: actions/setup-node@v2
12+
- uses: pnpm/action-setup@v4
1213
with:
1314
node-version: '16'
1415
- name: Get secrets
@@ -19,15 +20,15 @@ jobs:
1920
2021
- name: esbuild
2122
run: |
22-
npm i
23-
npm run-script ci-build
23+
pnpm i
24+
pnpm run ci-build
2425
# Remove gitignore rule for public folder
2526
sed -i 's/public\///' .gitignore
2627
2728
- name: Start server
2829
run: |
2930
cd public
30-
npx http-server --port 8080 &
31+
pnpx http-server --port 8080 &
3132
3233
- name: Audit URLs using Lighthouse
3334
uses: treosh/lighthouse-ci-action@v3

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@master
8+
- uses: pnpm/action-setup@v4
89
- name: Get secrets
910
run: |
1011
cd config
@@ -13,15 +14,15 @@ jobs:
1314
1415
- name: esbuild
1516
run: |
16-
npm i
17-
npm run-script ci-build
17+
pnpm i
18+
pnpm run ci-build
1819
# Remove gitignore rule for public folder
1920
sed -i 's/public\///' .gitignore
2021
2122
- name: Start server
2223
run: |
2324
cd public
24-
npx http-server --port 8080 &
25+
pnpx http-server --port 8080 &
2526
2627
- name: Audit URLs using Lighthouse
2728
uses: treosh/lighthouse-ci-action@v3

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Setting up the dev environment
44

55
* Fork the **dev branch** and clone it locally.
6-
* Run `npm install` to make sure you have all the dependancies installed.
6+
* Run `pnpm install` to make sure you have all the dependancies installed.
77
* Start dev work
88

99

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"ci-build": "cross-env NODE_ENV=production node config/esbuild/ci-build.js",
99
"build": "cross-env NODE_ENV=production node config/esbuild/build.js",
1010
"watch": "cross-env NODE_ENV=development node config/esbuild/dev.js",
11-
"server-test": "cd public && npx http-server",
11+
"server-test": "cd public && pnpx http-server",
1212
"pytest": "cd unit_tests && python3 -m pytest -s",
1313
"pytest-first": "cd unit_tests && python3 -m pytest -s -x",
1414
"style": "standard"

0 commit comments

Comments
 (0)