Skip to content

Commit

Permalink
Update simplified CD guideline
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandfrank committed Feb 17, 2024
1 parent 1ebd45c commit 71d507f
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,29 +234,19 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# Init cache to speed up yarn install
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
uses: actions/checkout@v4
# Enable if using Yarn >= 2
# - name: Enable Corepack for Yarn
# run: corepack enable
- name: Configure Node.js
uses: actions/setup-node@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile # or `yarn install --immutable` for Yarn >= 2
Expand Down

0 comments on commit 71d507f

Please sign in to comment.