Skip to content

Commit 83fbf5e

Browse files
committed
fix: reduce the size of the bundle
By using pnpm
1 parent 38ed634 commit 83fbf5e

File tree

3 files changed

+24
-32
lines changed

3 files changed

+24
-32
lines changed

.github/workflows/CI.yml

+18-10
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ jobs:
2828

2929
- uses: actions/setup-node@v2
3030
with:
31-
node-version: "12.x"
31+
node-version: 12
3232

33-
- name: Install dependencies
33+
- uses: pnpm/action-setup@master
34+
with:
35+
version: latest
36+
37+
- name: Test production installation
38+
run: apm install --production
39+
40+
- name: Build
3441
run: |
35-
apm install --production
36-
npm install --only=dev
42+
pnpm install
3743
./node_modules/.bin/atom-package-deps .
3844
3945
- name: Run tests 👩🏾‍💻
@@ -71,16 +77,18 @@ jobs:
7177
- uses: atom-community/action-setup-atom@v1
7278
- uses: actions/setup-node@v2
7379
with:
74-
node-version: "12.x"
80+
node-version: 12
7581

76-
- name: NPM install
77-
run: npm install
82+
- uses: pnpm/action-setup@master
83+
with:
84+
version: latest
7885

7986
- name: Build and Commit
8087
run: |
81-
npm run clean
82-
npm run get.servers
83-
npm run build-commit
88+
pnpm install
89+
pnpm run clean
90+
pnpm run get.servers
91+
pnpm run build-commit
8492
8593
- name: Release 🎉
8694
uses: cycjimmy/semantic-release-action@v2

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"decompress-tarxz": "^3.0.0",
113113
"eslint-config-atomic": "^1.16.2",
114114
"gitly": "^2.1.2",
115-
"parcel": "^2.0.0-beta.3.1",
115+
"parcel": "2.0.0-beta.3.1",
116116
"prettier-config-atomic": "^2.0.5",
117117
"shx": "0.3.3",
118118
"terser-config-atomic": "^0.1.1",

pnpm-lock.yaml

+5-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)