-
Notifications
You must be signed in to change notification settings - Fork 458
48 lines (48 loc) · 1.38 KB
/
base-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
47
48
name: base-shell
on:
push:
branches:
- master
paths:
- "packages/base-shell/src/**"
- "packages/base-shell/cra-template-base/template/**"
workflow_dispatch:
jobs:
base-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/
working-directory: ./packages/base-shell
- name: Install dependencies
run: npm i
working-directory: ./packages/base-shell
- name: Publish
run: npm publish
working-directory: ./packages/base-shell
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
base-shell-template:
if: ${{ always() }}
needs: [base-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/
working-directory: ./packages/base-shell/cra-template-base
- name: Install dependencies
run: npm i
working-directory: ./packages/base-shell/cra-template-base
- name: Publish
run: npm publish
working-directory: ./packages/base-shell/cra-template-base
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}