diff --git a/.github/workflows/npm-published-simulation.yml b/.github/workflows/npm-published-simulation.yml index 88336d5eb..a6a96d0bb 100644 --- a/.github/workflows/npm-published-simulation.yml +++ b/.github/workflows/npm-published-simulation.yml @@ -14,26 +14,26 @@ jobs: runs-on: ubuntu-latest steps: - - name: Setup Node.js environment (interactive-examples) - uses: actions/setup-node@v4 - with: - node-version: 18 - - name: Checkout mdn/interactive-examples uses: actions/checkout@v4 with: repository: mdn/interactive-examples path: interactive-examples - - name: Install all packages (interactive-examples) - working-directory: interactive-examples - run: npm ci - - name: Checkout this repository uses: actions/checkout@v4 with: path: bob + - name: Setup Node.js environment (interactive-examples) + uses: actions/setup-node@v4 + with: + node-version-file: "interactive-examples/.nvmrc" + + - name: Install all packages (interactive-examples) + working-directory: interactive-examples + run: npm ci + - name: Install all packages (bob) working-directory: bob run: npm ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8487de603..02d51c760 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version-file: ".nvmrc" - name: Install dependencies run: npm ci - name: Prepack diff --git a/.nvmrc b/.nvmrc index 3f430af82..edf176c67 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18 +v18.17