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 fc78d05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,26 @@ on:
branches: [main, prod-beta, prod-stable]

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 "##[set-output name=NVMRC;]$(cat .nvmrc)"
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
10 changes: 5 additions & 5 deletions .github/workflows/content-sources-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.12.1]

steps:
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
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 fc78d05

Please sign in to comment.