Skip to content

Commit

Permalink
Merge branch 'develop' into feat/injection-zones-8
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperkristensen authored May 28, 2024
2 parents a97fecc + 65be42c commit 346f9cf
Show file tree
Hide file tree
Showing 40 changed files with 667 additions and 247 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "16.10.0"
node-version: 20
cache: "yarn"

- name: Assert changed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-freshness-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "16.10.0"
node-version: 20
cache: "yarn"

- name: Install dependencies
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/docs-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Documentation Tests
on:
on:
pull_request:
paths:
- www/**
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: 20
cache: "yarn"

- name: Install dependencies
Expand All @@ -44,7 +44,7 @@ jobs:
# TODO change once we have actual URLs
NEXT_PUBLIC_RESOURCES_URL: "http://example.com"
NEXT_PUBLIC_USER_GUIDE_URL: "http://example.com"

vale-book:
if: ${{ startsWith(github.head_ref, 'docs/') }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
# an error state
- name: Get PR files number
working-directory: www/utils/packages/scripts
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
run: "yarn check:pr-files-count ${{ github.ref_name }}"
id: pr-files

- name: Get Directories to Scan
Expand All @@ -90,13 +90,13 @@ jobs:
with:
files: ${{ steps.directories.outputs.LIST }}
fail_on_error: true
vale_flags: '--minAlertLevel=error'
vale_flags: "--minAlertLevel=error"
reporter: github-pr-check
token: ${{ github.token }}
filter_mode: nofilter
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}

vale-resources:
if: ${{ startsWith(github.head_ref, 'docs/') }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
# an error state
- name: Get PR files number
working-directory: www/utils/packages/scripts
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
run: "yarn check:pr-files-count ${{ github.ref_name }}"
id: pr-files

- name: Get Directories to Scan
Expand All @@ -141,13 +141,13 @@ jobs:
with:
files: ${{ steps.directories.outputs.LIST }}
fail_on_error: true
vale_flags: '--minAlertLevel=error'
vale_flags: "--minAlertLevel=error"
reporter: github-pr-check
token: ${{ github.token }}
filter_mode: nofilter
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}

vale-user-guide:
if: ${{ startsWith(github.head_ref, 'docs/') }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
# an error state
- name: Get PR files number
working-directory: www/utils/packages/scripts
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
run: "yarn check:pr-files-count ${{ github.ref_name }}"
id: pr-files

- name: Get Directories to Scan
Expand All @@ -192,13 +192,13 @@ jobs:
with:
files: ${{ steps.directories.outputs.LIST }}
fail_on_error: true
vale_flags: '--minAlertLevel=error'
vale_flags: "--minAlertLevel=error"
reporter: github-pr-check
token: ${{ github.token }}
filter_mode: nofilter
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}

vale-ui:
if: ${{ startsWith(github.head_ref, 'docs/') }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -229,7 +229,7 @@ jobs:
# an error state
- name: Get PR files number
working-directory: www/utils/packages/scripts
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
run: "yarn check:pr-files-count ${{ github.ref_name }}"
id: pr-files

- name: Get Directories to Scan
Expand All @@ -244,13 +244,13 @@ jobs:
with:
files: ${{ steps.directories.outputs.LIST }}
fail_on_error: true
vale_flags: '--minAlertLevel=error'
vale_flags: "--minAlertLevel=error"
reporter: github-pr-check
token: ${{ github.token }}
filter_mode: nofilter
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}

vale-api:
if: ${{ startsWith(github.head_ref, 'docs/') }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -281,7 +281,7 @@ jobs:
# an error state
- name: Get PR files number
working-directory: www/utils/packages/scripts
run: 'yarn check:pr-files-count ${{ github.ref_name }}'
run: "yarn check:pr-files-count ${{ github.ref_name }}"
id: pr-files

- name: Get Directories to Scan
Expand All @@ -296,13 +296,13 @@ jobs:
with:
files: ${{ steps.directories.outputs.LIST }}
fail_on_error: true
vale_flags: '--minAlertLevel=error'
vale_flags: "--minAlertLevel=error"
reporter: github-pr-check
token: ${{ github.token }}
filter_mode: diff_context
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}

content-eslint:
if: ${{ startsWith(github.head_ref, 'docs/') }}
runs-on: ubuntu-latest
Expand All @@ -324,7 +324,7 @@ jobs:
- name: Run Eslint
working-directory: www
run: yarn lint:content

code-docs-eslint:
if: ${{ startsWith(github.head_ref, 'docs/') }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -352,4 +352,4 @@ jobs:

- name: Run Eslint
working-directory: www
run: yarn lint
run: yarn lint
8 changes: 4 additions & 4 deletions .github/workflows/generate-docblocks-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
workflow_dispatch:
inputs:
referenceName:
description: 'Reference to Generate. Use either `all` or a name of a config file in `www/utils/packages/typedoc-config` such as `product`.'
description: "Reference to Generate. Use either `all` or a name of a config file in `www/utils/packages/typedoc-config` such as `product`."
required: false
default: 'all'
default: "all"

jobs:
references:
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "16.10.0"
node-version: 20
cache: "yarn"

- name: Install dependencies
Expand Down Expand Up @@ -83,4 +83,4 @@ jobs:
add-paths: www/apps/resources/references/**
branch: "docs/generate-reference"
branch-suffix: "timestamp"
body: ${{ steps.pr-message.outputs.body }}
body: ${{ steps.pr-message.outputs.body }}
8 changes: 4 additions & 4 deletions .github/workflows/generate-docblocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 18
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- name: Install Dependencies
run: yarn
Expand Down Expand Up @@ -70,10 +70,10 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 18
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- name: Install Dependencies
run: yarn
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/generate-public-references.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
workflow_dispatch:
inputs:
referenceName:
description: 'Reference to Generate. Use either `all` to generate all references, `api` to generate the API reference, or `ui` to generate UI reference.'
description: "Reference to Generate. Use either `all` to generate all references, `api` to generate the API reference, or `ui` to generate UI reference."
required: false
default: 'all'
default: "all"
release:
types: [published]

Expand All @@ -28,7 +28,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "16.10.0"
node-version: 20
cache: "yarn"

- name: Install dependencies
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "16.10.0"
node-version: 20
cache: "yarn"

- name: Install dependencies
Expand Down Expand Up @@ -114,4 +114,4 @@ jobs:
labels: "type: chore"
add-paths: www/apps/ui/src/specs
branch: "docs/generate-ui-ref"
branch-suffix: "timestamp"
branch-suffix: "timestamp"
2 changes: 1 addition & 1 deletion .github/workflows/release-notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "16.10.0"
node-version: 20
cache: "yarn"

- name: Post to Slack channel
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 16
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Creating .npmrc
run: |
Expand All @@ -37,4 +37,4 @@ jobs:
- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/snapshot-this.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
snapshot:
name: Snapshot Release
if: |
github.event.issue.pull_request &&
github.event.issue.pull_request &&
github.event.comment.body == '/snapshot-this'
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20
cache: "yarn"

- name: Install dependencies
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
'```sh\n' +
`yarn add ${tag}\n` +
'```'
)).join('\n') +
)).join('\n') +
`\n\n> Latest commit: ${context.sha}`
)
Expand Down
Loading

0 comments on commit 346f9cf

Please sign in to comment.