Skip to content

Commit ad24982

Browse files
ErioldDaniel Montoya
and
Daniel Montoya
authored
feat(package): remove package-lock in machine and regenerate (#588)
Co-authored-by: Daniel Montoya <daniel.montoya@eclass.cl>
1 parent f0601da commit ad24982

File tree

2 files changed

+37
-64
lines changed

2 files changed

+37
-64
lines changed

.github/workflows/nodejs.yml

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,12 @@ jobs:
2121
run: |
2222
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
2323
shell: bash
24-
- name: Remove package-lock.json
25-
run: rm -rf package-lock.json
26-
- name: Install dependencies and regenerate package-lock.json
27-
run: npm install
24+
- name: Regenerate package-lock.json
25+
run: npm i
26+
- name: Clean node_modules after regenerate
27+
run: rm -rf node_modules
2828
- name: Clean install on CI
29-
run: |
30-
if [ -e yarn.lock ]; then
31-
yarn install --frozen-lockfile
32-
elif [ -e package-lock.json ]; then
33-
npm ci
34-
else
35-
npm i
36-
fi
29+
run: npm ci
3730
- name: Linter code check
3831
run: npm run lint:check
3932
- name: Testing JEST
@@ -55,15 +48,12 @@ jobs:
5548
run: |
5649
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
5750
shell: bash
51+
- name: Regenerate package-lock.json
52+
run: npm i
53+
- name: Clean node_modules after regenerate
54+
run: rm -rf node_modules
5855
- name: Clean install on CI
59-
run: |
60-
if [ -e yarn.lock ]; then
61-
yarn install --frozen-lockfile
62-
elif [ -e package-lock.json ]; then
63-
npm ci
64-
else
65-
npm i
66-
fi
56+
run: npm ci
6757
- name: Build library
6858
run: npm run build
6959
- name: Release version
@@ -95,15 +85,12 @@ jobs:
9585
run: |
9686
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
9787
shell: bash
88+
- name: Regenerate package-lock.json
89+
run: npm i
90+
- name: Clean node_modules after regenerate
91+
run: rm -rf node_modules
9892
- name: Clean install on CI
99-
run: |
100-
if [ -e yarn.lock ]; then
101-
yarn install --frozen-lockfile
102-
elif [ -e package-lock.json ]; then
103-
npm ci
104-
else
105-
npm i
106-
fi
93+
run: npm ci
10794
- name: Generate new Build to Pages
10895
run: npm run deploy
10996
- name: Upload deploy-ready build files

package-lock.json

Lines changed: 22 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)