Use well-specified node.js for Prettier jobs in GitHub Actions
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 20 Sep 2021 16:47:42 +0000 (18:47 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 20 Sep 2021 16:47:42 +0000 (18:47 +0200)
.github/workflows/codestyle.yml

index eaa73d903639168838d920886b2b443bab768813..1ada4dd6cf3fb05dd50d2136f19648d2ce1e66d6 100644 (file)
@@ -30,6 +30,10 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v2
+    - name: Set up node.js
+      uses: actions/setup-node@v2
+      with:
+        node-version: "16"
     - run: npm install
     - name: Run prettier
       run: |
@@ -45,6 +49,10 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v2
+    - name: Set up node.js
+      uses: actions/setup-node@v2
+      with:
+        node-version: "16"
     - run: npm install
     - name: Run prettier
       run: |