-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 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 |
---|---|---|
|
@@ -11,6 +11,9 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ssh-key: ${{ secrets.RELEASE_DEPLOY_KEY }} | ||
ref: develop | ||
|
||
# The Yospace private npm registry seems to not support NPM token so we sadly need to use password and email | ||
- name: Log in to Yospace private NPM registry | ||
|
@@ -51,17 +54,16 @@ jobs: | |
const { defineReleaseVersion } = require('./.github/scripts/defineVersion.js') | ||
return defineReleaseVersion({core}, "${{ steps.read-latest-release-version.outputs.latestReleaseVersion }}", './CHANGELOG.md' ) | ||
- name: Bump package.json and Changelog version and tag commit | ||
- name: Bump package.json and Changelog version | ||
run: | | ||
git config --global user.name 'Automated Release' | ||
git config --global user.email '[email protected]' | ||
npm version "${{ fromJson(steps.define-release-version.outputs.result) }}" | ||
npm --no-git-tag-version version "${{ fromJson(steps.define-release-version.outputs.result) }}" | ||
npx kacl release | ||
- name: Push changes | ||
- name: Add tag and push changes | ||
run: | | ||
git add . | ||
git commit -m "Bump version and update changelog" | ||
git tag -a "${{ fromJson(steps.define-release-version.outputs.result) }}" -m "v${{ fromJson(steps.define-release-version.outputs.result) }}" | ||
git push origin develop | ||
git push origin --tags | ||
|