Skip to content

Commit

Permalink
make sure nodejs is lts and npm is cached in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nisrulz committed Aug 20, 2024
1 parent b7055b1 commit 09f5e34
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ jobs:
- name: Checkout the code
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20 # has to be LTS
cache: 'npm'

- name: Install all CLI tools
run: npm install -g @tokilabs/pug3-cli sass js-yaml firebase-tools svgo png-minify uglifycss uglify-js html-minifier purgecss
run: npm install @tokilabs/pug3-cli sass js-yaml firebase-tools svgo png-minify uglifycss uglify-js html-minifier purgecss

- name: Render the website from templates
run: |
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20 # has to be LTS
cache: 'npm'

- name: Install all CLI tools
run: npm install -g @tokilabs/pug3-cli sass js-yaml firebase-tools svgo png-minify uglifycss uglify-js html-minifier purgecss
run: npm install @tokilabs/pug3-cli sass js-yaml firebase-tools svgo png-minify uglifycss uglify-js html-minifier purgecss

- name: Render the website from templates
run: |
Expand Down

0 comments on commit 09f5e34

Please sign in to comment.