-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 1.23 KB
/
deploy.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
name: "Deploy"
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
env:
SKIP_PREFLIGHT_CHECK: true
CI: true
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
ROCKSET_APIKEY: ${{ secrets.ROCKSET_APIKEY }}
ROCKSET_APISERVER: ${{ secrets.ROCKSET_APISERVER }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: ./login ${{ secrets.NPM_ACCESS_KEY }} ${{ secrets.FONTAWESOME_REGISTRY }}
- run: yarn
- run: yarn run build
- run: yarn run lint
- run: ROCKSET_APIKEY="${{ secrets.ROCKSET_APIKEY }}" ROCKSET_APISERVER="${{ secrets.ROCKSET_APISERVER }}" yarn run test
- run: git checkout -- .
- run: ./login ${{ secrets.NPM_ACCESS_KEY }} ${{ secrets.FONTAWESOME_REGISTRY }}
- run: ./lerna-publish
- run: cd packages/cli && yarn run oclif-pack
- run: cd packages/cli && yarn run oclif-publish
- run: cd packages/cli && yarn run oclif-promote --sha="${GITHUB_SHA::7}" --version="${GITHUB_REF_NAME:1}"