-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
3 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
test-publish: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -50,6 +50,14 @@ jobs: | |
- name: Install | ||
run: pnpm install --no-frozen-lockfile --filter='./packages/*' | ||
|
||
- name: Create branch | ||
run: git checkout -b test.$(git rev-parse --short HEAD) | ||
|
||
- name: Set git globals | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Tolgee Machine" | ||
- name: Update version locally | ||
run: | | ||
lerna version prerelease --yes --conventional-prerelease --preid test.$(git rev-parse --short HEAD) \ | ||
|
@@ -78,9 +86,9 @@ jobs: | |
dirs: ${{ steps.set-dirs.outputs.dirs }} | ||
|
||
cypress: | ||
name: 'Cypress with published packages' | ||
name: 'Cypress' | ||
# cypress-prepare will install and build everything into cache | ||
needs: test-publish | ||
needs: cypress-prepare | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -129,6 +137,14 @@ jobs: | |
- name: Install | ||
run: pnpm install --no-frozen-lockfile | ||
|
||
- name: Create branch | ||
run: git checkout -b test.$(git rev-parse --short HEAD) | ||
|
||
- name: Set git globals | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Tolgee Machine" | ||
- name: Update version locally | ||
run: | | ||
lerna version prerelease --yes --conventional-prerelease --preid test.$(git rev-parse --short HEAD) \ | ||
|