feat: Update axe-core to v4.10.0 (#1088) #155
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
name: Deploy | |
on: | |
push: | |
branches: | |
- develop | |
- release | |
- master | |
jobs: | |
canary: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
if: github.ref_name == 'develop' && github.repository_owner == 'dequelabs' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
# Ensure packages are built | |
- run: npm run build | |
# Make sure the working tree is clean | |
- run: git reset --hard HEAD | |
- run: npm config set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }} | |
- run: | | |
npx lerna publish prepatch \ | |
--no-verify-access \ | |
--no-git-tag-version \ | |
--no-push \ | |
--canary \ | |
--dist-tag=next \ | |
--exact \ | |
--preid=$(git rev-parse --short HEAD) \ | |
--force-publish \ | |
--yes | |
relase-candidate: | |
runs-on: ubuntu-latest | |
if: github.ref_name == 'release' && github.repository_owner == 'dequelabs' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
# Ensure packages are built | |
- run: npm run build | |
# Make sure the working tree is clean | |
- run: git reset --hard HEAD | |
- run: npm config set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }} | |
- run: | | |
npx lerna publish prepatch \ | |
--no-verify-access \ | |
--no-git-tag-version \ | |
--no-push \ | |
--canary \ | |
--dist-tag=rc \ | |
--exact \ | |
--preid=$(git rev-parse --short HEAD) \ | |
--force-publish \ | |
--yes | |
production: | |
runs-on: ubuntu-latest | |
if: github.ref_name == 'master' && github.repository_owner == 'dequelabs' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
# Ensure packages are built | |
- run: npm run build | |
# Make sure the working tree is clean | |
- run: git reset --hard HEAD | |
- run: npm config set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }} | |
- run: | | |
npx lerna publish from-package \ | |
--force-publish='*' \ | |
--yes | |
- run: | | |
PKG_VERSION=$(jq -r .version < lerna.json) | |
gh release create v$PKG_VERSION \ | |
--title "Release $PKG_VERSION" \ | |
--generate-notes \ | |
--repo ${{ github.repository }} \ | |
--target master | |
env: | |
GH_TOKEN: ${{ github.token }} |