Skip to content

Commit

Permalink
Merge pull request #21 from commercelayer/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies to latest major
  • Loading branch information
marcomontalbano authored Mar 5, 2024
2 parents f88d7df + 4d920af commit ea9f806
Show file tree
Hide file tree
Showing 51 changed files with 6,989 additions and 19,172 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache 💾 # https://nextjs.org/docs/messages/no-cache#github-actions
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.npm
Expand All @@ -38,17 +38,17 @@ jobs:
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Node 🧰
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: 'npm'

- name: Install 📦
run: npm ci

- name: Build 🔧
run: |
npm run export -w ./packages/website --if-present
npm run build -w ./packages/website --if-present
env:
SITE_URL: https://commercelayer.github.io/demo-store-core
NEXT_PUBLIC_BASE_PATH: /demo-store-core
Expand All @@ -60,10 +60,10 @@ jobs:
NEXT_PUBLIC_DATA_FETCHING: ssg

- name: Setup Pages 📄
uses: actions/configure-pages@v2
uses: actions/configure-pages@v4

- name: Upload artifact 🚀
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ./packages/website/out/

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Node 🧰
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: 'npm'

- name: Install 📦
Expand All @@ -42,7 +42,7 @@ jobs:

- name: Post to a Slack channel
id: slack
uses: slackapi/slack-github-action@v1.23.0
uses: slackapi/slack-github-action@v1.25.0
with:
# Slack channel id, channel name, or user id to post message.
# See also: https://api.slack.com/methods/chat.postMessage#channels
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create a draft GitHub release 🎁
uses: ncipollo/release-action@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:

strategy:
matrix:
node: [16.x, 18.x]
node: [18.17.0, 18.x, 20.x]

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Node 🧰
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
Expand Down
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

14 changes: 14 additions & 0 deletions netlify.ssg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[build]
command="npm run build"
publish="packages/website/out"

[build.processing]
skip_processing = true

[build.environment]
NEXT_PUBLIC_DATA_FETCHING="ssg"

[template.environment]
SITE_URL="Base url of your website."
NEXT_PUBLIC_CL_CLIENT_ID="Commerce Layer Sales Channel Client ID."
NEXT_PUBLIC_CL_ENDPOINT="Commerce Layer Sales Channel Endpoint."
22 changes: 22 additions & 0 deletions netlify.ssr.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[build]
command="npm run build"
publish="packages/website/.next"

[build.processing]
skip_processing = true

[build.environment]
NEXT_PUBLIC_DATA_FETCHING="ssr"

[template.environment]
SITE_URL="Base url of your website."
NEXT_PUBLIC_CL_CLIENT_ID="Commerce Layer Sales Channel Client ID."
NEXT_PUBLIC_CL_ENDPOINT="Commerce Layer Sales Channel Endpoint."

# https://github.com/netlify/next-runtime/issues/2329#issuecomment-1907388023
[functions]
included_files = [
"node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context*",
"node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context*",
"node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context*",
]
Loading

0 comments on commit ea9f806

Please sign in to comment.