Skip to content

Commit 4012042

Browse files
committed
Apply lastest decisions around release proces
1 parent a69f6ce commit 4012042

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.github/workflows/on-release-beta.yml renamed to .github/workflows/on-merge-to-main.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,15 @@ jobs:
4141
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/$GITHUB_REPOSITORY
4242
4343
# Follow https://github.com/lerna/lerna/issues/2248#issuecomment-527882069 recommendation
44-
npx lerna version --conventional-commits --conventional-prerelease --preid beta --force-publish=* --yes --no-changelog
44+
npx lerna version --conventional-commits --conventional-prerelease --preid dev --force-publish=* --yes --no-changelog
4545
git push --delete origin $(git describe --abbrev=0)
46-
47-
npx lerna publish from-package --no-verify-access --yes
4846
#########################
4947
# Generate documentation
5048
#########################
5149
- name: Set up Python
5250
uses: actions/setup-python@v2.3.1
5351
with:
5452
python-version: '3.8'
55-
- name: Set RELEASE_VERSION env var
56-
run: |
57-
RELEASE_VERSION=$(cat packages/commons/package.json | jq '.version' -r)
58-
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV
5953
- name: Install doc generation dependencies
6054
run: |
6155
pip install --upgrade pip
@@ -67,8 +61,8 @@ jobs:
6761
- name: Build mkdocs site in "gh-pages" branch and push
6862
run: |
6963
rm -rf site
70-
VERSION="${{ env.RELEASE_VERSION }}"
71-
ALIAS="latest"
64+
VERSION="dev"
65+
ALIAS="dev"
7266
echo "Publishing doc for version: $VERSION"
7367
mkdocs build
7468
mike deploy --push --update-aliases "$VERSION" "$ALIAS"
@@ -84,7 +78,7 @@ jobs:
8478
github_token: ${{ secrets.GITHUB_TOKEN }}
8579
publish_dir: ./api
8680
keep_files: true
87-
destination_dir: ${{ env.RELEASE_VERSION }}/api
81+
destination_dir: dev/api
8882
- name: Release API docs to the "latest" version
8983
uses: peaceiris/actions-gh-pages@v3
9084
with:

.github/workflows/on-release-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
git config --global user.name 'github-actions[bot]'
3737
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
3838
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/$GITHUB_REPOSITORY
39-
npx lerna version --conventional-commits --conventional-graduate --create-release github --force-publish=* --yes
39+
npx lerna version --conventional-commits --conventional-graduate --force-publish=* --yes
4040
npx lerna publish from-git --no-verify-access --yes
4141
#########################
4242
# Generate documentation

0 commit comments

Comments
 (0)