Skip to content

Commit

Permalink
ci: add release-candidate to deploy.yml (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidious committed Oct 16, 2023
1 parent 5bfd440 commit 604b78b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- develop
- release
- master

jobs:
Expand Down Expand Up @@ -34,6 +35,33 @@ jobs:
--force-publish \
--yes
relase-candidate:
runs-on: ubuntu-latest
if: github.ref_name == 'release' && github.repository_owner == 'dequelabs'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
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'
Expand Down

0 comments on commit 604b78b

Please sign in to comment.