@@ -12,13 +12,16 @@ jobs:
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v2
15+ - name : Setup pnpm
16+ uses : pnpm/action-setup@v4
1517 - uses : actions/setup-node@v2
1618 with :
1719 node-version : lts/*
18- - run : npm install
19- - run : npm run lint
20- - run : npm run build
21- - run : npx aegir dep-check
20+ - run : pnpm install
21+ - run : pnpm lint
22+ - run : pnpm build
23+ # The `events` is used in `test/utils/create-pubsub.ts` and aegir complaints about it unused dependency
24+ - run : pnpm aegir dep-check --ignore events
2225 test-node :
2326 needs : check
2427 runs-on : ${{ matrix.os }}
@@ -29,11 +32,13 @@ jobs:
2932 fail-fast : false
3033 steps :
3134 - uses : actions/checkout@v2
35+ - name : Setup pnpm
36+ uses : pnpm/action-setup@v4
3237 - uses : actions/setup-node@v2
3338 with :
3439 node-version : ${{ matrix.node }}
35- - run : npm install
36- - run : npm run test:node -- --cov --bail -- --exit
40+ - run : pnpm install
41+ - run : pnpm test:node -- --cov --bail -- --exit
3742 - uses : codecov/codecov-action@v1
3843 test-node-e2e :
3944 needs : check
@@ -45,31 +50,37 @@ jobs:
4550 fail-fast : false
4651 steps :
4752 - uses : actions/checkout@v2
53+ - name : Setup pnpm
54+ uses : pnpm/action-setup@v4
4855 - uses : actions/setup-node@v2
4956 with :
5057 node-version : ${{ matrix.node }}
51- - run : npm install
52- - run : npm run test:e2e -- --target node --bail -- --exit
58+ - run : pnpm install
59+ - run : pnpm test:e2e -- --target node --bail -- --exit
5360 test-chrome :
5461 needs : check
5562 runs-on : ubuntu-latest
5663 steps :
5764 - uses : actions/checkout@v2
65+ - name : Setup pnpm
66+ uses : pnpm/action-setup@v4
5867 - uses : actions/setup-node@v2
5968 with :
6069 node-version : lts/*
61- - run : npm install
62- - run : npm run test:browser -- -t webworker --bail -- --exit
70+ - run : pnpm install
71+ - run : pnpm test:browser -- -t webworker --bail -- --exit
6372 test-firefox :
6473 needs : check
6574 runs-on : ubuntu-latest
6675 steps :
6776 - uses : actions/checkout@v2
77+ - name : Setup pnpm
78+ uses : pnpm/action-setup@v4
6879 - uses : actions/setup-node@v2
6980 with :
7081 node-version : lts/*
71- - run : npm install
72- - run : npm run test:browser -- -t webworker --bail -- --browser firefox -- --exit
82+ - run : pnpm install
83+ - run : pnpm test:browser -- -t webworker --bail -- --browser firefox -- --exit
7384 maybe-release :
7485 name : release
7586 runs-on : ubuntu-latest
@@ -92,13 +103,17 @@ jobs:
92103 registry-url : ' https://registry.npmjs.org'
93104 if : ${{ steps.release.outputs.release_created }}
94105
95- - run : npm install
106+ - name : Setup pnpm
107+ uses : pnpm/action-setup@v4
96108 if : ${{ steps.release.outputs.release_created }}
97109
98- - run : npm run build
110+ - run : pnpm install
99111 if : ${{ steps.release.outputs.release_created }}
100112
101- - run : npm publish --access public
113+ - run : pnpm build
114+ if : ${{ steps.release.outputs.release_created }}
115+
116+ - run : pnpm publish --access public
102117 if : ${{ steps.release.outputs.release_created }}
103118 env :
104119 NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
0 commit comments