Skip to content

feat(ci): Change Mattermost notification channel #198

feat(ci): Change Mattermost notification channel

feat(ci): Change Mattermost notification channel #198

Workflow file for this run

name: Release
on:
# can be triggered manually
workflow_dispatch:
# on master merge
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test:nowatch
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19.0.5
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
storybook-deploy:
name: Storybook deploy
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- name: Install
run: npm ci
- name: Deploy
run: npm run deploy-storybook -- --ci
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
notify:
needs: storybook-deploy
if: always()
runs-on: ubuntu-latest
steps:
- uses: dataesr/mm-notifier-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
mattermost_webhook_url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
mattermost_channel: bots
deployment_url: https://dataesr.github.io/react-dsfr