diff --git a/.github/workflows/build-repo.yml b/.github/workflows/build-repo.yml index b644bd2c..ecffe4d3 100644 --- a/.github/workflows/build-repo.yml +++ b/.github/workflows/build-repo.yml @@ -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 diff --git a/.github/workflows/content-sources-actions.yml b/.github/workflows/content-sources-actions.yml index 5dc5c710..b79efacd 100644 --- a/.github/workflows/content-sources-actions.yml +++ b/.github/workflows/content-sources-actions.yml @@ -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