mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-19 02:37:22 +01:00
Check out branches
This commit is contained in:
3
.github/workflows/release-publish.yml
vendored
3
.github/workflows/release-publish.yml
vendored
@@ -29,10 +29,11 @@ jobs:
|
|||||||
- name: Prepare release
|
- name: Prepare release
|
||||||
run: |
|
run: |
|
||||||
echo "Preparing release ${GITHUB_REF:10}"
|
echo "Preparing release ${GITHUB_REF:10}"
|
||||||
|
git checkout -t origin/release/${GITHUB_REF:10}
|
||||||
npm version --no-git-tag-version --allow-same-version ${GITHUB_REF:10}
|
npm version --no-git-tag-version --allow-same-version ${GITHUB_REF:10}
|
||||||
git add package.json
|
git add package.json
|
||||||
git commit -m "Bump version ${GITHUB_REF:10}"
|
git commit -m "Bump version ${GITHUB_REF:10}"
|
||||||
git checkout master
|
git checkout -t origin/master
|
||||||
git merge -m "Release ${GITHUB_REF:10}" --no-ff release/${GITHUB_REF:10}
|
git merge -m "Release ${GITHUB_REF:10}" --no-ff release/${GITHUB_REF:10}
|
||||||
git push --delete release/${GITHUB_REF:10}
|
git push --delete release/${GITHUB_REF:10}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user