Skip to content

fix: apply dockerlint advise #22

fix: apply dockerlint advise

fix: apply dockerlint advise #22

# 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