fix: install netlify nextjs plugin manually

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-04-13 15:32:40 +02:00
parent 3e0874dfb0
commit 391559bec4
3 changed files with 15 additions and 2 deletions

View file

@ -10,6 +10,7 @@ on:
env:
NETLIFY_VERSION: 13.2.2
NETLIFY_NEXTJS_PLUGIN_VERSION: 4.33.0
NODEJS_VERSION: 18
defaults:
@ -56,7 +57,7 @@ jobs:
run: rm -r .next/cache
- name: Install netlify CLI
run: "npm install -g netlify-cli@${{ env.NETLIFY_VERSION }}"
run: "yarn add --dev netlify-cli@${{ env.NETLIFY_VERSION }} @netlify/plugin-nextjs@${{ env.NETLIFY_NEXTJS_PLUGIN_VERSION }}"
- name: Run netlify CLI deployment
env:

View file

@ -28,6 +28,7 @@ permissions:
env:
NETLIFY_VERSION: 13.2.2
NETLIFY_NEXTJS_PLUGIN_VERSION: 4.33.0
NODEJS_VERSION: 18
defaults:
@ -89,7 +90,7 @@ jobs:
ref: ${{ github.head_ref }}
- name: Install netlify CLI
run: "npm install -g netlify-cli@${{ env.NETLIFY_VERSION }}"
run: "yarn add --dev netlify-cli@${{ env.NETLIFY_VERSION }} @netlify/plugin-nextjs@${{ env.NETLIFY_NEXTJS_PLUGIN_VERSION }}"
- name: Run netlify CLI
env:

View file

@ -90,6 +90,17 @@
"datasourceTemplate": "npm",
"depNameTemplate": "netlify-cli"
},
{
"fileMatch": [
".github/workflows/frontend-netlify-deploy-main.yml$",
".github/workflows/frontend-netlify-deploy-pr.yml$"
],
"matchStrings": [
"NETLIFY_NEXTJS_PLUGIN_VERSION=(?<currentValue>.*?)\\n"
],
"datasourceTemplate": "npm",
"depNameTemplate": "@netlify/plugin-nextjs"
},
{
"fileMatch": [
".github/workflows/deploy-main.yml$",