diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8493ca6a..a3d7d9b4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,7 @@ on: push: branches: - develop + - release - master jobs: @@ -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'