Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

Update nextjs.yml

Aykut Saraç1de7110be587
diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml
index 72836ad5..472e10c5 100644
--- a/.github/workflows/nextjs.yml
+++ b/.github/workflows/nextjs.yml
@@ -35,7 +35,7 @@ jobs:
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
- echo "command=install" >> $GITHUB_OUTPUT
+ echo "command=install --frozen-lockfile --production" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
@@ -52,6 +52,14 @@ jobs:
with:
node-version: "16"
cache: ${{ steps.detect-package-manager.outputs.manager }}
+ - name: Cache node_modules
+ uses: actions/cache@v3
+ with:
+ path: |
+ ~/.npm
+ ~/.cache/yarn
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}
+ restore-keys: ${{ runner.os }}-node-
- name: Setup Pages
uses: actions/configure-pages@v3
with: