Skip to content

Commit

Permalink
Merge branch 'main' into custom-attribute-input-type
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-matthews authored Feb 20, 2024
2 parents a7198fc + c70d949 commit 5c8a311
Show file tree
Hide file tree
Showing 801 changed files with 18,656 additions and 581 deletions.
37 changes: 37 additions & 0 deletions .github/linters/metadata.schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
properties:
title:
type: string
maxLength: 60
description:
type: string
maxLength: 160
keywords:
type: array
items:
type: string
enum:
- API Mesh
- App Builder
- B2B
- Backend Development
- Cache
- Checkout
- Cloud
- Configuration
- Cron
- Events
- Extensibility
- Extensions
- GraphQL
- Integration
- Inventory
- Payments
- Performance
- REST
- Security
- Tools
- Upgrade

required:
- title
- description
21 changes: 3 additions & 18 deletions .github/workflows/add-to-project-board.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
##### Aggregate Commerce PRs and Issues into a respective Organizational Project #####

name: Add pull requests and issues to projects
Expand All @@ -12,20 +11,6 @@ on:
- opened

jobs:
add-to-project:
runs-on: ubuntu-latest

steps:
- name: Add to Commerce PR project
if: github.event_name == 'pull_request_target'
uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/AdobeDocs/projects/5 # The organizational project for pull requests
github-token: ${{ secrets.COMMERCE_PROJECT_AUTOMATION }}

- name: Add to Commerce Issue project
if: github.event_name == 'issues'
uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/AdobeDocs/projects/6 # The organizational project for issues
github-token: ${{ secrets.COMMERCE_PROJECT_AUTOMATION }}
call-workflow-add-to-project:
uses: AdobeDocs/commerce-php/.github/workflows/add-to-project_job.yml@main
secrets: inherit
23 changes: 23 additions & 0 deletions .github/workflows/add-to-project_job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Add to project job

on:
workflow_call

jobs:
add-to-project:
runs-on: ubuntu-latest

steps:
- name: Add to Commerce PR project
if: github.event_name == 'pull_request_target'
uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/AdobeDocs/projects/5 # The organizational project for pull requests
github-token: ${{ secrets.COMMERCE_PROJECT_AUTOMATION }}

- name: Add to Commerce Issue project
if: github.event_name == 'issues'
uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/AdobeDocs/projects/6 # The organizational project for issues
github-token: ${{ secrets.COMMERCE_PROJECT_AUTOMATION }}
26 changes: 20 additions & 6 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Yarn Install
uses: bahmutov/npm-install@v1
- name: Build
run: |
yarn build
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'

- name: Enable Corepack for Yarn
run: corepack enable

- name: Install Dependencies
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false

- name: Build site
run: yarn build
env:
NODE_OPTIONS: "--max-old-space-size=8192"
PREFIX_PATHS: true # works like --prefix-paths flag for 'gatsby build'
PATH_PREFIX: ${{ github.event.repository.name }}
ADOBE_LAUNCH_SRC: ${{ secrets.AIO_ADOBE_LAUNCH_SRC }}
Expand Down
29 changes: 12 additions & 17 deletions .github/workflows/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,29 @@ jobs:
build-and-index:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node v16 for Yarn v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.15.0' # Current LTS version
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'

- name: Enable Corepack for Yarn v3
- name: Enable Corepack for Yarn
run: corepack enable

- name: Install Yarn v3
uses: borales/actions-yarn@v4
with:
cmd: set version stable

- name: Install dependencies
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Install Dependencies
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false

- name: Build site
uses: borales/actions-yarn@v4
with:
cmd: build
run: yarn build

env:
NODE_OPTIONS: "--max_old_space_size=4096"
NODE_OPTIONS: "--max_old_space_size=8192"
PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build'
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: ${{ github.repository_owner }}
Expand Down
44 changes: 17 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
branch_short_ref: ${{ steps.get_branch.outputs.branch }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

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

echo-state:
Expand Down Expand Up @@ -56,30 +56,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node v16 for Yarn v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.15.0' # Current LTS version

- name: Enable Corepack for Yarn v3
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'

- name: Enable Corepack for Yarn
run: corepack enable

- name: Install Yarn v3
uses: borales/actions-yarn@v3
with:
cmd: set version stable


- name: Install Dependencies
uses: borales/actions-yarn@v3
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
with:
cmd: install


- name: Gatsby Cache
uses: actions/cache@v2
uses: actions/cache@v3.3.2
with:
path: |
public
Expand All @@ -89,11 +84,9 @@ jobs:
${{ needs.set-state.outputs.branch_short_ref }}-gatsby-cache-
- name: Build site
uses: borales/actions-yarn@v3
with:
cmd: build
run: yarn build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
NODE_OPTIONS: "--max_old_space_size=8192"
PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build'
PATH_PREFIX: ${{ needs.set-state.outputs.path_prefix }}
GATSBY_ADOBE_LAUNCH_SRC: ${{ secrets.AIO_ADOBE_LAUNCH_PROD_SRC }}
Expand All @@ -116,18 +109,15 @@ jobs:
GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }}
GATSBY_SITE_DOMAIN_URL: https://developer.adobe.com
- name: Deploy
uses: icaraps/static-website-deploy@master
uses: AdobeDocs/static-website-deploy@master
with:
enabled-static-website: 'true'
source: 'public'
target: ${{ needs.set-state.outputs.path_prefix }}
connection-string: ${{ secrets.AIO_AZURE_PROD_CONNECTION_STRING }}
remove-existing-files: 'true'
- name: Delay purge
run: sleep 60s
shell: bash
- name: Purge Fastly Cache
uses: icaraps/gatsby-fastly-purge-action@master
uses: AdobeDocs/gatsby-fastly-purge-action@master
with:
fastly-token: ${{ secrets.AIO_FASTLY_TOKEN }}
fastly-url: '${{ secrets.AIO_FASTLY_PROD_URL }}${{ needs.set-state.outputs.path_prefix }}'
43 changes: 15 additions & 28 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
clean:
description: 'Clean cache (yes|no)'
required: true
default: 'no'
default: 'yes'
excludeSubfolder:
description: 'Exclude a subfolder from deletion'
required: false
Expand All @@ -21,7 +21,7 @@ jobs:
exclude_subfolder: ${{ github.event.inputs.excludeSubfolder }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get pathPrefix
uses: actions/github-script@v6
Expand All @@ -33,7 +33,7 @@ jobs:
result-encoding: string
- name: Get branch name
shell: bash
run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
id: get_branch

echo-state:
Expand Down Expand Up @@ -67,30 +67,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node v16 for Yarn v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.15.0' # Current LTS version
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'

- name: Enable Corepack for Yarn v3
- name: Enable Corepack for Yarn
run: corepack enable

- name: Install Yarn v3
uses: borales/actions-yarn@v3
with:
cmd: set version stable

- name: Install Dependencies
uses: borales/actions-yarn@v3
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
with:
cmd: install

- name: Gatsby Cache
uses: actions/cache@v2
uses: actions/cache@v3.3.2
with:
path: |
public
Expand All @@ -101,16 +96,11 @@ jobs:
- name: Clean Cache
if: needs.set-state.outputs.clean_cache == 'true'
uses: borales/actions-yarn@v3
with:
cmd: clean
run: yarn clean

- name: Build site
uses: borales/actions-yarn@v3
with:
cmd: build
run: yarn build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build'
PATH_PREFIX: ${{ needs.set-state.outputs.path_prefix }}
GATSBY_ADOBE_LAUNCH_SRC: ${{ secrets.AIO_ADOBE_LAUNCH_DEV_SRC }}
Expand All @@ -134,19 +124,16 @@ jobs:
GATSBY_SITE_DOMAIN_URL: https://developer-stage.adobe.com

- name: Deploy
uses: icaraps/static-website-deploy@master
uses: AdobeDocs/static-website-deploy@master
with:
enabled-static-website: 'true'
source: 'public'
target: ${{ needs.set-state.outputs.path_prefix }}
connection-string: ${{ secrets.AIO_AZURE_DEV_CONNECTION_STRING }}
remove-existing-files: 'true'
exclude-subfolder: ${{ needs.set-state.outputs.exclude_subfolder }}
- name: Delay purge
run: sleep 60s
shell: bash
- name: Purge Fastly Cache
uses: icaraps/gatsby-fastly-purge-action@master
uses: AdobeDocs/gatsby-fastly-purge-action@master
with:
fastly-token: ${{ secrets.AIO_FASTLY_TOKEN }}
fastly-url: '${{ secrets.AIO_FASTLY_DEV_URL}}${{ needs.set-state.outputs.path_prefix }}'
Loading

0 comments on commit 5c8a311

Please sign in to comment.