-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1298 from dequelabs/release-v5.13.0
chore(cauldron): Release 5.13.0
- Loading branch information
Showing
20 changed files
with
336 additions
and
327 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 'Dependencies' | ||
description: 'Installs and builds dependencies for Cauldron' | ||
inputs: | ||
root: | ||
type: boolean | ||
default: true | ||
packages-react: | ||
type: boolean | ||
default: false | ||
packages-styles: | ||
type: boolean | ||
default: false | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
cache-dependency-path: '**/yarn.lock' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install root dependencies | ||
run: yarn install --frozen-lockfile | ||
shell: bash | ||
# Note: Checking for both boolean and string true values due to referenced bug: | ||
# https://github.com/actions/runner/issues/2238 | ||
if: ${{ inputs.root == true || inputs.root == 'true' }} | ||
- name: Install packages/react dependencies | ||
run: yarn install --cwd packages/react | ||
shell: bash | ||
# Note: Checking for both boolean and string true values due to referenced bug: | ||
# https://github.com/actions/runner/issues/2238 | ||
if: ${{ inputs.packages-react == true || inputs.packages-react == 'true' }} | ||
- name: Install packages/styles dependencies | ||
run: yarn install --cwd packages/styles | ||
shell: bash | ||
# Note: Checking for both boolean and string true values due to referenced bug: | ||
# https://github.com/actions/runner/issues/2238 | ||
if: ${{ inputs.packages-styles == true || inputs.packages-styles == 'true' }} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
|
||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/dependencies | ||
- run: yarn lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
|
||
jobs: | ||
|
||
tests: | ||
uses: ./.github/workflows/tests.yml | ||
|
||
publish: | ||
if: github.ref == 'refs/heads/master' | ||
needs: [tests] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: 'master' | ||
- uses: ./.github/actions/dependencies | ||
with: | ||
root: false | ||
packages-react: true | ||
packages-styles: true | ||
- name: Build packages | ||
run: | | ||
NODE_ENV=production yarn --cwd packages/react build | ||
NODE_ENV=production yarn --cwd packages/styles build | ||
- name: Publish @deque/cauldron-styles | ||
run: | | ||
cd packages/styles | ||
npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Publish @deque/cauldron-react | ||
run: | | ||
cd packages/react | ||
npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
|
||
canary: | ||
if: github.ref == 'refs/heads/develop' | ||
needs: [tests] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: 'develop' | ||
- uses: ./.github/actions/dependencies | ||
with: | ||
root: false | ||
packages-react: true | ||
packages-styles: true | ||
- name: Build packages | ||
run: | | ||
NODE_ENV=production yarn --cwd packages/react build | ||
NODE_ENV=production yarn --cwd packages/styles build | ||
- name: Publish @deque/cauldron-styles | ||
run: | | ||
cd packages/styles | ||
PACKAGE_VERSION="$(npm pkg get version | tr -d \")" | ||
npm version "$PACKAGE_VERSION-canary.${GITHUB_SHA:0:8}" --allow-same-version --no-git-tag-version | ||
npm publish --tag=next | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
- name: Publish @deque/cauldron-react | ||
run: | | ||
cd packages/react | ||
PACKAGE_VERSION="$(npm pkg get version | tr -d \")" | ||
npm version "$PACKAGE_VERSION-canary.${GITHUB_SHA:0:8}" --allow-same-version --no-git-tag-version | ||
npm publish --tag=next | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
workflow_call: | ||
|
||
jobs: | ||
|
||
react: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/dependencies | ||
with: | ||
root: false | ||
packages-react: true | ||
packages-styles: true | ||
- name: Build packages | ||
run: | | ||
NODE_ENV=production yarn --cwd packages/react build | ||
- run: yarn test | ||
|
||
a11y: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/dependencies | ||
with: | ||
packages-react: true | ||
packages-styles: true | ||
- name: Build packages | ||
run: | | ||
NODE_ENV=production yarn --cwd packages/react build | ||
NODE_ENV=production yarn --cwd packages/styles build | ||
- run: yarn build:docs | ||
- run: yarn test:a11y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.