From c90c52f7198a2e831d8527e8de6fb5c9a0bdaf2e Mon Sep 17 00:00:00 2001 From: nachtjasmin Date: Sat, 2 Dec 2023 12:58:36 +0100 Subject: [PATCH] ci: use global .node-version for correct version --- .github/workflows/playwright.yml | 2 +- .github/workflows/pr.yml | 4 +++- .node-version | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .node-version diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 1cd4f84..bf31603 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "14.x" + node-version-file: ".node-version" - name: Install dependencies run: npm ci - name: Install Playwright Browsers diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index fbd51cd..6c64346 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,9 +14,11 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: ".node-version" - name: Format files run: make format - - uses: stefanzweifel/git-auto-commit-action@v5 name: Commit possible changes with: diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..3f430af --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +v18