Tag action

This commit is contained in:
adrinr 2023-04-20 12:24:23 +01:00
parent 9ddb148698
commit 6ecb062acf
2 changed files with 39 additions and 1 deletions

38
.github/workflows/tag-prerelease.yml vendored Normal file
View File

@ -0,0 +1,38 @@
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:
- 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
- uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Tag prerelease
run: |
yarn version --prerelease --cwd="./versions"

View File

@ -1,3 +1,3 @@
{
"version": "2.5.6-alpha.6"
"version": "0.0.999-alpha.6"
}