@@ -41,21 +41,15 @@ jobs:
41
41
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/$GITHUB_REPOSITORY
42
42
43
43
# 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
45
45
git push --delete origin $(git describe --abbrev=0)
46
-
47
- npx lerna publish from-package --no-verify-access --yes
48
46
# ########################
49
47
# Generate documentation
50
48
# ########################
51
49
- name : Set up Python
52
50
uses : actions/setup-python@v2.3.1
53
51
with :
54
52
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
59
53
- name : Install doc generation dependencies
60
54
run : |
61
55
pip install --upgrade pip
67
61
- name : Build mkdocs site in "gh-pages" branch and push
68
62
run : |
69
63
rm -rf site
70
- VERSION="${{ env.RELEASE_VERSION }} "
71
- ALIAS="latest "
64
+ VERSION="dev "
65
+ ALIAS="dev "
72
66
echo "Publishing doc for version: $VERSION"
73
67
mkdocs build
74
68
mike deploy --push --update-aliases "$VERSION" "$ALIAS"
84
78
github_token : ${{ secrets.GITHUB_TOKEN }}
85
79
publish_dir : ./api
86
80
keep_files : true
87
- destination_dir : ${{ env.RELEASE_VERSION }} /api
81
+ destination_dir : dev /api
88
82
- name : Release API docs to the "latest" version
89
83
uses : peaceiris/actions-gh-pages@v3
90
84
with :
0 commit comments