-
Notifications
You must be signed in to change notification settings - Fork 18
40 lines (37 loc) · 1.19 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy Release
# The job builds the mat-addons, publishes in on npmjs and deploys a new demo on ghpages
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm --prefix ./projects/material-addons version ${{ github.event.release.tag_name }}
- run: npm run publish:mat-add
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm run build:mat-add
- run: npm install --no-optional
- run: npm install
- run: npm run publish:demo-ci
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
notify_teams_channel:
name: Notify MAD Release Teams Channel
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- name: Microsoft Teams Notification
uses: skitionek/notify-microsoft-teams@master
if: success()
with:
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
overwrite: '{title: `New release published! ${workflow}`}'