Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinber committed Jun 21, 2024
1 parent 95b93a4 commit 4fd64f3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4fd64f3

Please sign in to comment.