mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-12 18:49:37 +02:00
small fixes
This commit is contained in:
18
.github/workflows/release-publish.yml
vendored
18
.github/workflows/release-publish.yml
vendored
@@ -28,17 +28,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Prepare release
|
- name: Prepare release
|
||||||
run: |
|
run: |
|
||||||
echo "Preparing release ${GITHUB_REF:10}"
|
VERSION=${GITHUB_REF:10}
|
||||||
git checkout -t origin/release/${GITHUB_REF:10}
|
echo "Preparing release $VERSION"
|
||||||
npm version --no-git-tag-version --allow-same-version ${GITHUB_REF:10}
|
git checkout -t origin/release/$VERSION
|
||||||
|
npm version --no-git-tag-version --allow-same-version $VERSION
|
||||||
git add package.json
|
git add package.json
|
||||||
git commit -m "Bump version ${GITHUB_REF:10}"
|
git commit -m "Bump version $VERSION"
|
||||||
git checkout -t origin/master
|
git checkout -t origin/master
|
||||||
git merge -m "Release ${GITHUB_REF:10}" --no-ff release/${GITHUB_REF:10}
|
git merge -m "Release $VERSION" --no-ff release/$VERSION
|
||||||
git push
|
git push --no-verify
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: |
|
run: |
|
||||||
npm set //registry.npmjs.org/:_authToken ${{ secrets.GITHUB_TOKEN }}
|
npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
|
||||||
npm publish
|
npm publish
|
||||||
|
env:
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
Reference in New Issue
Block a user