Skip to content

Commit

Permalink
ci: match startManualRelease and onPushToMain release jobs (#549)
Browse files Browse the repository at this point in the history
* ci: match startManualRelease and onPushToMain release jobs. remove unused gitconfig action.

* ci: change to .nvmrc

* ci: remove unused gitConfig action
  • Loading branch information
randi274 authored Feb 28, 2023
1 parent 7fe0fb1 commit 2ae7e08
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 48 deletions.
16 changes: 0 additions & 16 deletions .github/actions/gitConfig/action.yml

This file was deleted.

56 changes: 26 additions & 30 deletions .github/workflows/onPushToMain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,32 @@ jobs:
uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main
release:
runs-on: ubuntu-latest
container:
image: node:lts
needs:
- tests
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.IDEE_GH_TOKEN }}
- uses: ./.github/actions/gitConfig
with:
email: ${{ secrets.IDEE_GH_EMAIL }}
- run: yarn
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@ed98b658f3015c5afb96a13caf9bb81f69df49e6
with:
git-user-name: Release Bot
git-user-email: ${{ secrets.IDEE_GH_EMAIL }}
github-token: ${{ secrets.IDEE_GH_TOKEN }}
skip-version-file: true
output-file: false
tag-prefix: "v"
pre-commit: ./scripts/bump-lerna-version.js
fallback-version: 3.12.0
- name: Create Github Release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: actions/checkout@v3
with:
token: ${{ secrets.IDEE_GH_TOKEN }}
- run: yarn
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@d360fad3a42feca6462f72c97c165d60a02d4bf2
with:
git-user-name: Release Bot
git-user-email: ${{ secrets.IDEE_GH_EMAIL }}
github-token: ${{ secrets.IDEE_GH_TOKEN }}
skip-version-file: true
output-file: false
pre-commit: ./scripts/bump-lerna-version.js
- name: Create Github Release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
3 changes: 1 addition & 2 deletions .github/workflows/startManualRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/setup-node@v3
with:
node-version: '16.0.x'
node-version-file: '.nvmrc'
- uses: actions/checkout@v3
with:
token: ${{ secrets.IDEE_GH_TOKEN }}
Expand All @@ -27,7 +27,6 @@ jobs:
skip-on-empty: false
output-file: false
pre-commit: ./scripts/bump-lerna-version.js
tag-prefix: ''
- name: Create Github Release
uses: actions/create-release@v1
env:
Expand Down

0 comments on commit 2ae7e08

Please sign in to comment.