Skip to content

Commit

Permalink
CI: Use actions/setup-node instead of the Eleventy action
Browse files Browse the repository at this point in the history
The TartanLlama/actions-eleventy action spins up a Docker container
unneedlessly, which defeats usage of actions/cache. By manually using
actions/setup-node the cache will be useful and the Docker usage
avoided. This should make CI runs faster.
  • Loading branch information
aperezdc committed Jun 29, 2020
1 parent 90d7804 commit 209ac0c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,24 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Checkout
uses: actions/checkout@v2
- name: Cache Node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-${{ runner.os }}-
npm-
- name: Install Node modules
run: npm install
- name: Eleventy
uses: TartanLlama/[email protected]
with:
install_dependencies: true
run: ./node_modules/.bin/eleventy
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 209ac0c

Please sign in to comment.