2023-04-20 23:24:23 +12:00
|
|
|
name: Tag prerelease
|
|
|
|
concurrency: release-prerelease
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
- chore/pipeline_npm_version_updates
|
|
|
|
paths:
|
|
|
|
- ".aws/**"
|
|
|
|
- ".github/**"
|
|
|
|
- "charts/**"
|
|
|
|
- "packages/**"
|
|
|
|
- "scripts/**"
|
|
|
|
- "package.json"
|
|
|
|
- "yarn.lock"
|
|
|
|
- "package.json"
|
|
|
|
- "yarn.lock"
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tag-prerelease:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-04-20 23:25:38 +12:00
|
|
|
# - name: Fail if branch is not develop
|
|
|
|
# if: github.ref != 'refs/heads/develop'
|
|
|
|
# run: |
|
|
|
|
# echo "Ref is not develop, you must run this job from develop."
|
|
|
|
# exit 1
|
2023-04-20 23:24:23 +12:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
|
|
|
|
|
|
|
- name: Tag prerelease
|
|
|
|
run: |
|
2023-04-20 23:27:06 +12:00
|
|
|
# setup the username and email.
|
|
|
|
git config --global user.name "Budibase Staging Release Bot"
|
|
|
|
git config --global user.email "<>"
|
2023-04-21 00:28:02 +12:00
|
|
|
lerna version prerelease --no-git-tag-version --force-publish --no-push --y
|
2023-04-21 00:26:48 +12:00
|
|
|
git add lerna.json
|
|
|
|
git commit -m 'Update version'
|
|
|
|
git push
|
|
|
|
git push --tags
|