Skip to content

Commit 959d908

Browse files
authored
Merge branch 'develop' into CEXT-3914
2 parents 2637fdc + 58e10e8 commit 959d908

File tree

201 files changed

+9576
-1666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+9576
-1666
lines changed

.github/linters/metadata.schema.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ properties:
2424
- Performance
2525
- REST
2626
- Security
27+
- Starter Kit
2728
- Tools
2829
- Upgrade
30+
- Webhooks
2931

3032
required:
3133
- title

.github/super-linter.env

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
IGNORE_GITIGNORED_FILES=true
2-
VALIDATE_GITLEAKS=true
3-
VALIDATE_MARKDOWN=true
42
MARKDOWN_CONFIG_FILE=.markdownlint.yml
5-
VALIDATE_YAML=true
3+
VALIDATE_ALL_CODEBASE=false
4+
VALIDATE_GITHUB_ACTIONS=true
65
VALIDATE_JSON=true
6+
VALIDATE_MARKDOWN=true
7+
VALIDATE_YAML=true

.github/workflows/github-pages.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
---
22
name: Github Pages
33
on: workflow_dispatch
4+
permissions: {}
45
jobs:
56
build-and-deploy:
67
runs-on: ubuntu-latest
8+
permissions:
9+
actions: read
10+
contents: write
711
steps:
8-
- name: Checkout
9-
uses: actions/checkout@v3
10-
- name: Yarn Install
11-
uses: bahmutov/npm-install@v1
12-
- name: Build
13-
run: |
14-
yarn build
12+
- uses: actions/checkout@v4
13+
- name: Use Setup Node and Install Dependencies Action
14+
uses: commerce-docs/devsite-install-action@main
15+
with:
16+
node-version-file: '.nvmrc'
17+
cache-dependency-path: 'yarn.lock'
18+
19+
- name: Build site
20+
run: yarn build
1521
env:
22+
NODE_OPTIONS: "--max-old-space-size=8192"
1623
PREFIX_PATHS: true # works like --prefix-paths flag for 'gatsby build'
1724
PATH_PREFIX: ${{ github.event.repository.name }}
1825
ADOBE_LAUNCH_SRC: ${{ secrets.AIO_ADOBE_LAUNCH_SRC }}

.github/workflows/index.yml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
name: Indexing
33
on:
4-
schedule:
5-
- cron: '42 20 1 * *'
64
workflow_dispatch:
75
inputs:
86
mode:
@@ -18,33 +16,18 @@ jobs:
1816
build-and-index:
1917
runs-on: ubuntu-latest
2018
steps:
21-
- uses: actions/checkout@v3
22-
23-
- name: Setup Node v16 for Yarn v3
24-
uses: actions/setup-node@v3
19+
- uses: actions/checkout@v4
20+
- name: Use Setup Node and Install Dependencies Action
21+
uses: commerce-docs/devsite-install-action@main
2522
with:
26-
node-version: '16.15.0' # Current LTS version
27-
28-
- name: Enable Corepack for Yarn v3
29-
run: corepack enable
30-
31-
- name: Install Yarn v3
32-
uses: borales/actions-yarn@v4
33-
with:
34-
cmd: set version stable
35-
36-
- name: Install dependencies
37-
uses: borales/actions-yarn@v4
38-
with:
39-
cmd: install
40-
env:
41-
YARN_ENABLE_IMMUTABLE_INSTALLS: false
23+
node-version-file: '.nvmrc'
24+
cache-dependency-path: 'yarn.lock'
4225

4326
- name: Build site
44-
uses: borales/actions-yarn@v4
45-
with:
46-
cmd: build
27+
run: yarn build
28+
4729
env:
30+
NODE_OPTIONS: "--max_old_space_size=8192"
4831
PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build'
4932
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5033
REPO_OWNER: ${{ github.repository_owner }}

.github/workflows/publish.yml

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
branch_short_ref: ${{ steps.get_branch.outputs.branch }}
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Get pathPrefix
1818
uses: actions/github-script@v6
@@ -24,7 +24,7 @@ jobs:
2424
result-encoding: string
2525
- name: Get branch name
2626
shell: bash
27-
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
27+
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
2828
id: get_branch
2929

3030
echo-state:
@@ -55,31 +55,15 @@ jobs:
5555
needs: [set-state, pre-build]
5656
runs-on: ubuntu-latest
5757
steps:
58-
- name: Checkout
59-
uses: actions/checkout@v3
60-
61-
- name: Setup Node v16 for Yarn v3
62-
uses: actions/setup-node@v3
63-
with:
64-
node-version: '16.15.0' # Current LTS version
65-
66-
- name: Enable Corepack for Yarn v3
67-
run: corepack enable
68-
69-
- name: Install Yarn v3
70-
uses: borales/actions-yarn@v3
58+
- uses: actions/checkout@v4
59+
- name: Use Setup Node and Install Dependencies Action
60+
uses: commerce-docs/devsite-install-action@main
7161
with:
72-
cmd: set version stable
73-
74-
- name: Install Dependencies
75-
uses: borales/actions-yarn@v3
76-
env:
77-
YARN_ENABLE_IMMUTABLE_INSTALLS: false
78-
with:
79-
cmd: install
80-
62+
node-version-file: '.nvmrc'
63+
cache-dependency-path: 'yarn.lock'
64+
8165
- name: Gatsby Cache
82-
uses: actions/cache@v2
66+
uses: actions/cache@v3.3.2
8367
with:
8468
path: |
8569
public
@@ -89,11 +73,9 @@ jobs:
8973
${{ needs.set-state.outputs.branch_short_ref }}-gatsby-cache-
9074
9175
- name: Build site
92-
uses: borales/actions-yarn@v3
93-
with:
94-
cmd: build
76+
run: yarn build
9577
env:
96-
NODE_OPTIONS: "--max_old_space_size=4096"
78+
NODE_OPTIONS: "--max_old_space_size=8192"
9779
PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build'
9880
PATH_PREFIX: ${{ needs.set-state.outputs.path_prefix }}
9981
GATSBY_ADOBE_LAUNCH_SRC: ${{ secrets.AIO_ADOBE_LAUNCH_PROD_SRC }}
@@ -111,23 +93,21 @@ jobs:
11193
GATSBY_IMS_CONFIG: ${{ secrets.AIO_IMS_PROD_CONFIG }}
11294
GATSBY_ALGOLIA_APPLICATION_ID: ${{ secrets.AIO_ALGOLIA_APPLICATION_ID }}
11395
GATSBY_ALGOLIA_SEARCH_API_KEY: ${{ secrets.AIO_ALGOLIA_SEARCH_API_KEY }}
114-
ALGOLIA_INDEXATION_MODE: skip
96+
ALGOLIA_INDEXATION_MODE: index
97+
ALGOLIA_WRITE_API_KEY: ${{ secrets.AIO_ALGOLIA_WRITE_API_KEY }}
11598
GATSBY_ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME || github.event.repository.name }}
11699
GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }}
117100
GATSBY_SITE_DOMAIN_URL: https://developer.adobe.com
118101
- name: Deploy
119-
uses: icaraps/static-website-deploy@master
102+
uses: AdobeDocs/static-website-deploy@master
120103
with:
121104
enabled-static-website: 'true'
122105
source: 'public'
123106
target: ${{ needs.set-state.outputs.path_prefix }}
124107
connection-string: ${{ secrets.AIO_AZURE_PROD_CONNECTION_STRING }}
125108
remove-existing-files: 'true'
126-
- name: Delay purge
127-
run: sleep 60s
128-
shell: bash
129109
- name: Purge Fastly Cache
130-
uses: icaraps/gatsby-fastly-purge-action@master
110+
uses: AdobeDocs/gatsby-fastly-purge-action@master
131111
with:
132112
fastly-token: ${{ secrets.AIO_FASTLY_TOKEN }}
133113
fastly-url: '${{ secrets.AIO_FASTLY_PROD_URL }}${{ needs.set-state.outputs.path_prefix }}'

0 commit comments

Comments
 (0)