Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add release-candidate to deploy.yml #875

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Zidious marked this conversation as resolved.
Show resolved Hide resolved
- 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'
Zidious marked this conversation as resolved.
Show resolved Hide resolved
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