-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #297 from rtfpessoa/release-major-version
release: New major refactor of diff2html to Typescript
- Loading branch information
Showing
10 changed files
with
1,134 additions
and
977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,16 +10,15 @@ jobs: | |
- run: | ||
name: Get next version | ||
command: | | ||
# Hack: Set a unique fake name for the release branch to avoid releasing master as the new 3.x major release for now | ||
export NEXT_VERSION="$(/bin/git-version --folder=$PWD --release-branch=FAKE-RELEASE-BRANCH-NAME)" | ||
export NEXT_VERSION="$(/bin/git-version --folder=$PWD --release-branch=master)" | ||
echo "Next version is ${NEXT_VERSION}" | ||
echo "${NEXT_VERSION}" > .version | ||
- run: | ||
name: Get next npm tag name | ||
command: | | ||
if [ "${GITHUB_REF#refs/heads/}" = "master" ]; then | ||
if [ "${CIRCLE_BRANCH}" = "master" ]; then | ||
export PUBLISH_TAG="latest" | ||
elif [ "${GITHUB_REF#refs/heads/}" = "next" ]; then | ||
elif [ "${CIRCLE_BRANCH}" = "next" ]; then | ||
export PUBLISH_TAG="next" | ||
else | ||
export PUBLISH_TAG="pr" | ||
|
@@ -132,6 +131,7 @@ jobs: | |
command: | | ||
# Update version in packages to publish | ||
yarn version --non-interactive --new-version $(cat .version) | ||
git push --tags "https://rtfpessoa:[email protected]/rtfpessoa/diff2html" | ||
- run: | ||
name: Setup npm credentials | ||
command: | | ||
|
@@ -208,3 +208,7 @@ workflows: | |
- publish_website: | ||
requires: | ||
- publish_approval | ||
filters: | ||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.