Skip to content

Commit

Permalink
clean node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Mar 6, 2024
1 parent d048fc2 commit 38915db
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
18 changes: 16 additions & 2 deletions bamboo-specs/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ Build:
yarn pack --filename aglint.tgz
ls -laht
rm -rf node_modules
- inject-variables:
file: dist/build.txt
scope: RESULT
Expand All @@ -68,6 +66,22 @@ Build:
configuration:
selectedRepository: defaultRepository
tagName: v${bamboo.inject.version}
final-tasks:
- script:
interpreter: SHELL
scripts:
- |-
set -x
set -e
# Fix mixed logs
exec 2>&1
ls -la
echo "Size before cleanup:" && du -h | tail -n 1
rm -rf node_modules
echo "Size after cleanup:" && du -h | tail -n 1
artifacts:
- name: aglint.tgz
pattern: aglint.tgz
Expand Down
16 changes: 14 additions & 2 deletions bamboo-specs/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,22 @@ Build:
yarn check-types
yarn lint
yarn test
final-tasks:
- script:
interpreter: SHELL
scripts:
- |-
set -x
set -e
# Fix mixed logs
exec 2>&1
ls -la
echo "Size before cleanup:" && du -h | tail -n 1
rm -rf node_modules
final-tasks:
- clean
echo "Size after cleanup:" && du -h | tail -n 1
requirements:
- adg-docker: true

Expand Down

0 comments on commit 38915db

Please sign in to comment.