Skip to content

Commit

Permalink
feat(package): remove package-lock in machine and regenerate (#588)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Montoya <[email protected]>
  • Loading branch information
Eriold and Daniel Montoya authored Sep 15, 2023
1 parent f0601da commit ad24982
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 64 deletions.
43 changes: 15 additions & 28 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,12 @@ jobs:
run: |
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
shell: bash
- name: Remove package-lock.json
run: rm -rf package-lock.json
- name: Install dependencies and regenerate package-lock.json
run: npm install
- name: Regenerate package-lock.json
run: npm i
- name: Clean node_modules after regenerate
run: rm -rf node_modules
- name: Clean install on CI
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
run: npm ci
- name: Linter code check
run: npm run lint:check
- name: Testing JEST
Expand All @@ -55,15 +48,12 @@ jobs:
run: |
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
shell: bash
- name: Regenerate package-lock.json
run: npm i
- name: Clean node_modules after regenerate
run: rm -rf node_modules
- name: Clean install on CI
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
run: npm ci
- name: Build library
run: npm run build
- name: Release version
Expand Down Expand Up @@ -95,15 +85,12 @@ jobs:
run: |
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
shell: bash
- name: Regenerate package-lock.json
run: npm i
- name: Clean node_modules after regenerate
run: rm -rf node_modules
- name: Clean install on CI
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
run: npm ci
- name: Generate new Build to Pages
run: npm run deploy
- name: Upload deploy-ready build files
Expand Down
58 changes: 22 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad24982

Please sign in to comment.