-
Notifications
You must be signed in to change notification settings - Fork 56
59 lines (49 loc) · 1.28 KB
/
deploy-package.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
49
50
51
52
53
54
55
56
57
58
59
name: Deploy Package CD
on:
workflow_dispatch:
push:
branches:
- master
env:
rid: ${{ github.run_id }}-${{ github.run_number }}
jobs:
initialize:
name: Initialize
runs-on: ubuntu-20.04
steps:
- name: Checkout Project
uses: actions/checkout@v2
- name: Setup Environment
uses: actions/setup-node@v2
with:
node-version: 16.x
check-latest: true
- name: Install Dependencies
run: yarn
- name: Cache Dependencies
uses: actions/cache@v2
with:
path: node_modules/
key: node-modules-${{ runner.os }}-${{ env.rid }}
deploy-package:
name: Deploy - Package
needs: initialize
runs-on: ubuntu-20.04
steps:
- name: Checkout Project
uses: actions/checkout@v2
- name: Setup Environment
uses: actions/setup-node@v2
with:
node-version: 16.x
check-latest: true
- name: Uncache Dependencies
uses: actions/cache@v2
with:
path: node_modules/
key: node-modules-${{ runner.os }}-${{ env.rid }}
- name: Deploy Package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.MRV2_NPM_TOKEN }}
run: yarn ci:publish