Skip to content

Commit

Permalink
ci(release): use env instead of exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Baliasnikov committed Oct 24, 2022
1 parent a66598a commit 76655a1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ jobs:
git-user-signingkey: true
git-commit-gpgsign: true
- name: Release
env:
GIT_AUTHOR_EMAIL: ${{ steps.import_gpg.outputs.email }}
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }}
GIT_AUTHOR_NAME: ${{ steps.import_gpg.outputs.name }}
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }}
run: |
# Set required environment variables for semantic-release-git
export GIT_AUTHOR_EMAIL="${{ steps.import_gpg.outputs.email }}"
export GIT_COMMITTER_EMAIL="${GIT_AUTHOR_EMAIL}"
export GIT_AUTHOR_NAME="${{ steps.import_gpg.outputs.name }}"
export GIT_COMMITTER_NAME="${GIT_AUTHOR_NAME}"
# Install and run release process
cd ${{ github.event.inputs.release-component }}
npm install
npx semantic-release -e semantic-release-monorepo

0 comments on commit 76655a1

Please sign in to comment.