-
Notifications
You must be signed in to change notification settings - Fork 457
46 lines (46 loc) · 1.35 KB
/
material-ui-shell.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
41
42
43
44
45
46
name: material-ui-shell
on:
push:
branches:
- master
paths:
- "packages/material-ui-shell/src/**"
- "packages/material-ui-shell/cra-template-material-ui/template/**"
workflow_dispatch:
jobs:
material-ui-shell:
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
registry-url: https://registry.npmjs.org/l
- name: Install dependencies
run: npm i
working-directory: ./packages/material-ui-shell
- name: Publish
run: npm publish
working-directory: ./packages/material-ui-shell
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
material-ui-shell-template:
if: ${{ always() }}
needs: [material-ui-shell]
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm i
working-directory: ./packages/material-ui-shell/cra-template-material-ui
- name: Publish
run: npm run release
working-directory: ./packages/material-ui-shell/cra-template-material-ui
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}