Skip to content

Commit

Permalink
Make build use .nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewgdewar committed Oct 2, 2023
1 parent 82f328d commit 1556acd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ on:
jobs:
build-test-release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.12.1]
env:
COMMIT_AUTHOR_USERNAME: GitHub actions
COMMIT_AUTHOR_EMAIL: actions@github.com

steps:
- name: Read .nvmrc
run: echo "NVMRC=$(cat ../../.nvmrc)" >> "$GITHUB_OUTPUT"
id: nvm

- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- name: Install Dependencies
run: npm ci
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/content-sources-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@ jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.12.1]

steps:
- name: Read .nvmrc
run: echo "NVMRC=$(cat ../../.nvmrc)" >> "$GITHUB_OUTPUT"
id: nvm

- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- name: Install Dependencies
run: npm ci
Expand Down

0 comments on commit 1556acd

Please sign in to comment.