Merge pull request #141 from IBM/ydekel6-patch-1 #100
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
name: Create new release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: Ubuntu-20.04 | |
if: "github.event_name == 'push' && github.ref == 'refs/heads/main' && !startsWith(github.event.head_commit.message, 'chore')" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.ADMIN_TOKEN }} | |
- name: setup nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: release using semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }} | |
GIT_AUTHOR_NAME: secrets.automation.dev | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: secrets.automation.dev | |
GIT_COMMITTER_EMAIL: [email protected] | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3 | |
pip install --user bumpversion | |
npm install @semantic-release/changelog | |
npm install @semantic-release/git | |
npm install @semantic-release/github | |
npm install @semantic-release/npm | |
npm install @semantic-release/release-notes-generator -D | |
npx semantic-release | |