chore(deps-dev): bump @commitlint/config-conventional #808
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: Release | |
on: | |
push: | |
branches: | |
- main | |
- '*[0-9].*[0-9].x' | |
- '*[0-9].x.x' | |
- dev | |
- alpha | |
- beta | |
# workflow_dispatch makes it possible to trigger the run manually | |
workflow_dispatch: | |
jobs: | |
semantic-release: | |
name: Run Semantic Release | |
runs-on: ubuntu-latest | |
outputs: | |
new_release_published: ${{ steps.semantic.outputs.new_release_published }} | |
new_release_version: ${{ steps.semantic.outputs.new_release_version }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Read .nvmrc | |
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
id: nvm | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- run: node -v && npm -v | |
- run: npm ci | |
- run: npm run build | |
- name: Semantic Release | |
uses: cycjimmy/semantic-release-action@v4 | |
id: semantic # Need an `id` for output variables | |
with: | |
semantic_version: 19.0.5 | |
extra_plugins: | | |
@semantic-release/[email protected] | |
@semantic-release/[email protected] | |
[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.CREATE_RELEASE }} | |
GH_USERNAME: lime-opensource | |
GH_TOKEN: ${{ secrets.CREATE_RELEASE }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ads }} | |
CI: true | |
- name: Trigger update in lime-crm-building-blocks | |
if: steps.semantic.outputs.new_release_published == 'true' && github.ref_name == 'main' | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.PRIVATE_REPO_DISPATCH }} | |
event-type: update-lime-elements | |
repository: Lundalogik/lime-crm-building-blocks | |
client-payload: '{"version": "${{ steps.semantic.outputs.new_release_version }}"}' | |
- name: Trigger update in lime-crm-components | |
if: steps.semantic.outputs.new_release_published == 'true' && github.ref_name == 'main' | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.PRIVATE_REPO_DISPATCH }} | |
event-type: update-lime-elements | |
repository: Lundalogik/lime-crm-components | |
client-payload: '{"version": "${{ steps.semantic.outputs.new_release_version }}"}' | |
- name: Trigger update in lime-webclient | |
if: steps.semantic.outputs.new_release_published == 'true' && github.ref_name == 'main' | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.PRIVATE_REPO_DISPATCH }} | |
event-type: update-lime-elements | |
repository: Lundalogik/lime-webclient | |
client-payload: '{"version": "${{ steps.semantic.outputs.new_release_version }}"}' | |
docs: | |
needs: semantic-release | |
if: needs.semantic-release.outputs.new_release_published == 'true' | |
permissions: | |
contents: read | |
pull-requests: write | |
uses: ./.github/workflows/publish-docs.yml | |
with: | |
version: "${{ needs.semantic-release.outputs.new_release_version }}" | |
forcePush: true | |
secrets: inherit |