Skip to content

Commit

Permalink
Speedup npm
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed Sep 22, 2022
1 parent 4012e57 commit fdfeb8a
Show file tree
Hide file tree
Showing 3 changed files with 9,650 additions and 11 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,18 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: 'yarn'

- name: Remove twig syntax from package.json
run: |
sed -i -e 's/{% if demosite %}//g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json
sed -i -e 's/{% endif %}//g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json
sed -i -e 's/"name".*/"name":"demo",/g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json
- run: npm install
- run: npm run build -- --continueAfterTestError=true
- run: npm run buildGroundControlSkeleton
- name: Install dependencies
run: yarn

- run: |
npm run build -- --continueAfterTestError=true
# Temporary disable buildGroundControlSkeleton step as npm install takes a very long time.
# npm run buildGroundControlSkeleton
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12
v14
Loading

0 comments on commit fdfeb8a

Please sign in to comment.