-
Notifications
You must be signed in to change notification settings - Fork 795
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 #3824 from dequelabs/release-2022-12-12
chore(release): v4.6.0
- Loading branch information
Showing
101 changed files
with
3,629 additions
and
1,654 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -5,15 +5,15 @@ defaults: &defaults | |
|
||
unix_box: &unix_box | ||
docker: | ||
- image: cimg/node:16.14-browsers | ||
- image: cimg/node:16.18-browsers | ||
|
||
unix_nightly_box: &unix_nightly_box | ||
docker: | ||
- image: cimg/node:lts-browsers | ||
|
||
orbs: | ||
puppeteer: threetreeslight/[email protected] | ||
browser-tools: circleci/browser-tools@1.1.0 | ||
browser-tools: circleci/browser-tools@1.4.0 | ||
|
||
set_npm_auth: &set_npm_auth | ||
run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH | ||
|
@@ -141,6 +141,7 @@ jobs: | |
steps: | ||
- checkout | ||
- <<: *restore_dependency_cache_unix | ||
- run: sudo apt-get update -y | ||
- run: npm run build | ||
- run: | ||
name: Install Chrome and ChromeDriver Beta | ||
|
@@ -245,7 +246,7 @@ jobs: | |
# Create a GitHub release. | ||
github_release: | ||
docker: | ||
- image: cimg/go:1.17.1 | ||
- image: cimg/go:1.19 | ||
steps: | ||
- checkout | ||
- run: go get gopkg.in/aktau/github-release.v0 | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,25 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Prettify the code | ||
uses: creyD/[email protected] | ||
with: | ||
prettier_options: '--write .' | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Cache node_modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./node_modules | ||
key: npm-workspace-cache-${{ runner.os }}-${{ hashFiles('./package-lock.json') }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16 | ||
# Workflows are not allowed to edit workflows. As result, we need to prevent Prettier from formatting them. | ||
- name: Prevent workflows from being formatted | ||
run: echo ".github" >> .prettierignore | ||
- run: npm run fmt | ||
# Prevent the prettierignore change from being committed. | ||
- run: git checkout .prettierignore | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: ':robot: Automated formatting fixes' |
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,52 @@ | ||
name: Create release candidate | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
create_release: | ||
name: Create release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ./node_modules | ||
key: npm-cache-${{ runner.os }}-${{ hashFiles('./package-lock.json') }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Run release script and open PR | ||
run: | | ||
git config user.name "API Team CI User" | ||
git config user.email "[email protected]" | ||
Branch="release-$(date +%Y-%m-%d)" | ||
echo "Branch: $Branch" | ||
git checkout -b "$Branch" | ||
npm ci | ||
npm run release | ||
git push origin "$Branch" --force | ||
Version=$(jq -r .version ./package.json) | ||
echo "Version: $Version" | ||
# Get the additions to the changelog as the commit body and generate the PR url | ||
ReleaseNotes=$( | ||
git show \ | ||
--no-color \ | ||
--no-prefix \ | ||
--output-indicator-new=! CHANGELOG.md | egrep '^!' | awk -F'^[!]' '{print $2}' | sed -e 's/\n/$0A/g' | ||
) | ||
echo "chore(release): v$Version" > /tmp/pr.txt | ||
echo "" >> /tmp/pr.txt | ||
echo "$ReleaseNotes" >> /tmp/pr.txt | ||
echo "" >> /tmp/pr.txt | ||
echo "This PR was opened by a robot :robot: :tada:" >> /tmp/pr.txt | ||
hub pull-request --file /tmp/pr.txt --base master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} |
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: Semantic PR title | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
semantic-pr-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dequelabs/semantic-pr-title@v1 |
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "axe-core", | ||
"version": "4.5.2", | ||
"version": "4.6.0", | ||
"contributors": [ | ||
{ | ||
"name": "David Sturley", | ||
|
Oops, something went wrong.