Stop creating tags for lerna on release-start (#4573)

This commit is contained in:
David Marby 2022-03-10 12:37:17 +01:00 committed by GitHub
parent b069bfde6c
commit 50df8c1a93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 17 deletions

View File

@ -24,6 +24,14 @@ jobs:
fetch-depth: 0
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Bootstrap packages
run: npm run bootstrap
- name: Install and login to snapcraft
if: ${{ env.IS_PRERELEASE == 'false' }}
run: |
@ -50,6 +58,7 @@ jobs:
tag_name: lib@${{ env.INSO_VERSION }}
release_name: "Inso CLI ${{ env.INSO_VERSION }} 📦"
body: "Full changelog ⇒ https://insomnia.rest/changelog"
commit: ${{ env.RELEASE_BRANCH }}
prerelease: ${{ env.IS_PRERELEASE }}
draft: false
env:

View File

@ -57,16 +57,12 @@ jobs:
- name: Config version
run: APP_VERSION="${{ env.RELEASE_VERSION }}" npm run app-bump-version
- name: Commit app version bump
run: git commit -am "Bump app config version to ${{ env.RELEASE_VERSION }}"
- name: Lerna version (alpha/beta)
- name: Lerna version
if: github.event.inputs.channel != 'stable'
run: npm run version -- --preid "${{ github.event.inputs.channel}}" --yes --no-push preminor
run: npm run version -- --preid "${{ github.event.inputs.channel }}" --yes ${{ github.event.inputs.channel != 'stable' && 'preminor' || 'minor' }}
- name: Lerna version (stable)
if: github.event.inputs.channel == 'stable'
run: npm run version -- --yes --no-push minor
- name: Commit
run: git commit -am "Bump app version to ${{ env.RELEASE_VERSION }} and lerna package versions"
- name: Push changes
run: |

View File

@ -1,15 +1,20 @@
{
"tagVersionPrefix": "lib@",
"version": "2.6.0-beta.0",
"includeMergedTags": true,
"command": {
"version": {
"message": "version packages %s"
}
},
"packages": [
"packages/*",
"plugins/*",
"packages/insomnia-app/build"
]
],
"command": {
"version": {
"exact": true,
"forcePublish": true,
"gitTagVersion": false,
"push": false
},
"publish": {
"verifyAccess": false
}
}
}

View File

@ -17,8 +17,8 @@
"lint:fix": "lerna run lint:fix --stream --no-bail",
"bootstrap": "npm install && lerna bootstrap && lerna run --stream bootstrap",
"bootstrap:electron-builder": "lerna bootstrap --no-ci -- --production --no-optional",
"version": "lerna version --exact --force-publish",
"publish": "lerna publish from-git --no-verify-access",
"version": "lerna version",
"publish": "lerna publish from-package",
"clean": "lerna run clean --parallel --stream && lerna clean --yes && rimraf node_modules",
"test": "lerna run --stream --parallel test",
"inso-start": "npm start --prefix packages/insomnia-inso",