Skip to content

Commit a1079ca

Browse files
committed
devop: 🔧 remove npm install in all instances, use npm ci instead
1 parent 2e87515 commit a1079ca

File tree

9 files changed

+42
-42
lines changed

9 files changed

+42
-42
lines changed

.devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
],
1010
"appPort": ["8080:8080"],
1111
"shutdownAction": "stopContainer",
12-
"postCreateCommand": "npm install"
12+
"postCreateCommand": "npm ci" // this ensures that new build will use package-lock.json
1313
}

.github/workflows/add-to-codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
${{ runner.os }}-node-${{steps.node-version.outputs.NODE_VERSION}}-
3030
3131
- name: npm install
32-
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install"
32+
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm ci"
3333

3434
- name: add to codecov
3535
run: |

.github/workflows/add-to-develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
${{ runner.os }}-node-${{steps.node-version.outputs.NODE_VERSION}}-
2727
2828
- name: npm install
29-
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install"
29+
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm ci"
3030

3131
- name: build
3232
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:history"

.github/workflows/add-to-mewbuilds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
${{ runner.os }}-node-${{steps.node-version.outputs.NODE_VERSION}}-
3030
3131
- name: npm install
32-
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install"
32+
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm ci"
3333

3434
- name: build
3535
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:hash"

.github/workflows/deploy-live.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
${{ runner.os }}-node-${{steps.node-version.outputs.NODE_VERSION}}-
3636
3737
- name: npm install
38-
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install"
38+
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm ci"
3939

4040
- name: build
4141
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:history:sourcemaps"

.github/workflows/deploy-to-ghpages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
${{ runner.os }}-node-${{steps.node-version.outputs.NODE_VERSION}}-
3434
3535
- name: npm install
36-
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install"
36+
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm ci"
3737

3838
- name: build
3939
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:hash"

.github/workflows/github-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
${{ runner.os }}-node-${{steps.node-version.outputs.NODE_VERSION}}-
3434
3535
- name: npm install
36-
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install"
36+
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm ci"
3737

3838
- name: build
3939
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:offline"

.github/workflows/run-on-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
${{ runner.os }}-node-${{steps.node-version.outputs.NODE_VERSION}}-
2828
2929
- name: npm install
30-
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm install"
30+
run: docker run --rm -v `pwd`:/home:rw --user "$(id -u):$(id -g)" mew-build-container /bin/bash -c "npm ci"
3131

3232
- name: build
3333
run: docker run --rm -v `pwd`:/home:rw mew-build-container /bin/bash -c "npm run build:hash"

README.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
<img src="./src/assets/images/presskit/logo-dark.png" width="300px"/>
22

3-
[![Website](https://img.shields.io/website-up-down-green-red/http/myetherwallet.com.svg?label=MyEtherWallet.com\&style=flat-square)](http://www.MyEtherWallet.com/)
3+
[![Website](https://img.shields.io/website-up-down-green-red/http/myetherwallet.com.svg?label=MyEtherWallet.com&style=flat-square)](http://www.MyEtherWallet.com/)
44
[![Github All Releases](https://img.shields.io/github/downloads/MyEtherWallet/MyEtherWallet/total.svg?style=flat-square)](https://www.github.com/MyEtherWallet/MyEtherWallet/releases)
55
[![GitHub issues](https://img.shields.io/github/issues-raw/MyEtherWallet/MyEtherWallet.svg?style=flat-square)](https://github.com/MyEtherWallet/MyEtherWallet/issues)
66
[![Travis](https://img.shields.io/travis/MyEtherWallet/MyEtherWallet.svg?style=flat-square)](https://travis-ci.org/MyEtherWallet/MyEtherWallet)
77
[![GitHub package version](https://img.shields.io/github/package-json/v/MyEtherWallet/MyEtherWallet.svg?style=flat-square)](https://github.com/MyEtherWallet/MyEtherWallet/blob/main/package.json) [![Greenkeeper badge](https://badges.greenkeeper.io/MyEtherWallet/MyEtherWallet.svg)](https://greenkeeper.io/)
88
![GitHub contributors](https://img.shields.io/github/contributors/MyEtherWallet/MyEtherWallet.svg?style=flat-square) [![Codecov badge](https://img.shields.io/codecov/c/github/MyEtherWallet/MyEtherWallet/develop.svg?style=flat-square)](https://codecov.io/github/MyEtherWallet/MyEtherWallet?branch=develop)
99

10-
MyEtherWallet is a doorway to the Ethereum blockchain, allowing users to manage their own funds without a centralized platform. -*Stephen, #MEWForce*
10+
MyEtherWallet is a doorway to the Ethereum blockchain, allowing users to manage their own funds without a centralized platform. -_Stephen, #MEWForce_
1111

12-
!["MyEtherWallet Logo](./src/assets/images/backgrounds/v6-landing-screen-shot.png "MyEtherWallet")
12+
!["MyEtherWallet Logo](./src/assets/images/backgrounds/v6-landing-screen-shot.png 'MyEtherWallet')
1313

1414
## Philosophy
1515

16-
* **Empower the people**: Give people the ability to interact with the Ethereum blockchain easily, without having to run a full node.
17-
* **Make it easy & free**: Everyone should be able to create a wallet and send Ether & Tokens without additional cost.
18-
* **People are the Priority**: People are the most important & their experience trumps all else. If monetization worsens the experience, we don't do it. (e.g. ads)
19-
* **A learning experience, too**: We want to educate about Ethereum, security, privacy, the importance of controlling your own keys, how the blockchain works, and how Ethereum and blockchain technologies enable a better world.
20-
* **If it can be hacked, it will be hacked**: Never save, store, or transmit secret info, like passwords or keys.
21-
* **Offline / Client-Side**: User should be able to run locally and offline without issue.
22-
* **Private**: No tracking!!! No emails. No ads. No demographics. We don't even know how many wallets have been generated, let alone who / what / where you are.
23-
* **Open source & auditable**
16+
- **Empower the people**: Give people the ability to interact with the Ethereum blockchain easily, without having to run a full node.
17+
- **Make it easy & free**: Everyone should be able to create a wallet and send Ether & Tokens without additional cost.
18+
- **People are the Priority**: People are the most important & their experience trumps all else. If monetization worsens the experience, we don't do it. (e.g. ads)
19+
- **A learning experience, too**: We want to educate about Ethereum, security, privacy, the importance of controlling your own keys, how the blockchain works, and how Ethereum and blockchain technologies enable a better world.
20+
- **If it can be hacked, it will be hacked**: Never save, store, or transmit secret info, like passwords or keys.
21+
- **Offline / Client-Side**: User should be able to run locally and offline without issue.
22+
- **Private**: No tracking!!! No emails. No ads. No demographics. We don't even know how many wallets have been generated, let alone who / what / where you are.
23+
- **Open source & auditable**
2424

2525
## MEW Around the Web
2626

27-
* [Website: https://www.myetherwallet.com/](https://www.myetherwallet.com/)
28-
* MEW Wallet:
29-
* [IOS App](https://apps.apple.com/us/app/mew-wallet-ethereum-and-defi/id1464614025)
30-
* [Android App](https://play.google.com/store/apps/details?id=com.myetherwallet.mewwallet\&hl=en_US\&gl=US)
31-
* [EthVM Blockchain explorer](https://www.ethvm.com/)
32-
* [MEW CX: https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm)
33-
* [MEW Team](https://team.myetherwallet.com/)
34-
* [MEWtopia](https://www.mewtopia.com/)
35-
* [MEW Knowledgebase](https://kb.myetherwallet.com/)
36-
* [FB: https://www.facebook.com/MyEtherWallet/](https://www.facebook.com/MyEtherWallet/)
37-
* [Twitter: https://twitter.com/myetherwallet](https://twitter.com/myetherwallet)
38-
* [YouTube: https://www.youtube.com/channel/UCQU5QbObwmaHNEMsuX3uQKA](https://www.youtube.com/channel/UCQU5QbObwmaHNEMsuX3uQKA)
39-
* [Instagram: https://www.instagram.com/myetherwallet/](https://www.instagram.com/myetherwallet/)
40-
* [Vkontakte: https://vk.com/public190491855](https://vk.com/public190491855)
41-
* [Medium: https://medium.com/@myetherwallet](https://medium.com/@myetherwallet)
42-
* [Telegram: https://t.me/myetherwallet](https://t.me/myetherwallet)
43-
* [Github MEW Repo: https://github.com/MyEtherWallet/MyEtherWallet](https://github.com/MyEtherWallet/MyEtherWallet)
44-
* [Github MEW Org: https://github.com/MyEtherWallet](https://github.com/MyEtherWallet)
45-
* [Github Latest Releases: https://github.com/MyEtherWallet/MyEtherWallet/releases/latest](https://github.com/MyEtherWallet/MyEtherWallet/releases/latest)
46-
* MEW ETH Donation Address: 0xDECAF9CD2367cdbb726E904cD6397eDFcAe6068D (mewtopia.eth)
47-
* MEW BTC Donation Address: 1DECAF2uSpFTP4L1fAHR8GCLrPqdwdLse9
27+
- [Website: https://www.myetherwallet.com/](https://www.myetherwallet.com/)
28+
- MEW Wallet:
29+
- [IOS App](https://apps.apple.com/us/app/mew-wallet-ethereum-and-defi/id1464614025)
30+
- [Android App](https://play.google.com/store/apps/details?id=com.myetherwallet.mewwallet&hl=en_US&gl=US)
31+
- [EthVM Blockchain explorer](https://www.ethvm.com/)
32+
- [MEW CX: https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm](https://chrome.google.com/webstore/detail/myetherwallet-cx/nlbmnnijcnlegkjjpcfjclmcfggfefdm)
33+
- [MEW Team](https://team.myetherwallet.com/)
34+
- [MEWtopia](https://www.mewtopia.com/)
35+
- [MEW Knowledgebase](https://kb.myetherwallet.com/)
36+
- [FB: https://www.facebook.com/MyEtherWallet/](https://www.facebook.com/MyEtherWallet/)
37+
- [Twitter: https://twitter.com/myetherwallet](https://twitter.com/myetherwallet)
38+
- [YouTube: https://www.youtube.com/channel/UCQU5QbObwmaHNEMsuX3uQKA](https://www.youtube.com/channel/UCQU5QbObwmaHNEMsuX3uQKA)
39+
- [Instagram: https://www.instagram.com/myetherwallet/](https://www.instagram.com/myetherwallet/)
40+
- [Vkontakte: https://vk.com/public190491855](https://vk.com/public190491855)
41+
- [Medium: https://medium.com/@myetherwallet](https://medium.com/@myetherwallet)
42+
- [Telegram: https://t.me/myetherwallet](https://t.me/myetherwallet)
43+
- [Github MEW Repo: https://github.com/MyEtherWallet/MyEtherWallet](https://github.com/MyEtherWallet/MyEtherWallet)
44+
- [Github MEW Org: https://github.com/MyEtherWallet](https://github.com/MyEtherWallet)
45+
- [Github Latest Releases: https://github.com/MyEtherWallet/MyEtherWallet/releases/latest](https://github.com/MyEtherWallet/MyEtherWallet/releases/latest)
46+
- MEW ETH Donation Address: 0xDECAF9CD2367cdbb726E904cD6397eDFcAe6068D (mewtopia.eth)
47+
- MEW BTC Donation Address: 1DECAF2uSpFTP4L1fAHR8GCLrPqdwdLse9
4848

4949
## Bug / Feature Request
5050

@@ -54,7 +54,7 @@ If you find a bug, or want a new feature added, please submit it on the [Github
5454

5555
1. Open terminal
5656
2. Clone the repo: `git clone [email protected]:MyEtherWallet/MyEtherWallet.git`
57-
3. run `npm i` to install node packages.
57+
3. run `npm ci` to install node packages.
5858
4. run `npm run build`. You can also use the offline version by opening the index file from the dist folder with your preferred browser
5959
5. start `npm start`
6060
6. If `npm start` fails and above the error message it states 'new update found' then the package.json version of the indicated packages needs to be updated to match the versions shown in the notice.
@@ -65,7 +65,7 @@ If you find a bug, or want a new feature added, please submit it on the [Github
6565
1. Open terminal
6666
2. Clone the repo: `git clone [email protected]:MyEtherWallet/MyEtherWallet.git`
6767
3. run `git checkout develop`
68-
4. run `npm i` to install node packages.
68+
4. run `npm ci` to install node packages.
6969
5. run `npm run build`. You can also use the offline version by opening the index file from the dist folder with your preferred browser
7070
6. start `npm run dev`
7171
7. App should be running in `https://localhost:8080`

0 commit comments

Comments
 (0)