fix: Dockerfile bash shell #23
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
# this step for master only | |
name: Semantic Release | |
on: | |
push: | |
branches: [ master, semantic_release ] | |
# this is to manually trigger the worklow | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Reason' | |
default: 'Manual launch' | |
jobs: | |
# one single job | |
release: | |
name: release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
# https://github.com/marketplace/actions/setup-node-js-environment | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: semantic | |
# should use dry-run to get the released version | |
run: | | |
npm install | |
npx --package=@semantic-release/changelog@6 \ | |
--package=@semantic-release/exec@6 \ | |
--package=@semantic-release/git@10 \ | |
semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Display Github summary | |
if: ${{ env.NEXT_RELEASE_VERSION != '' }} | |
run: | | |
echo "New release : ${{ env.NEXT_RELEASE_VERSION }}" >> $GITHUB_STEP_SUMMARY | |