-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.09 KB
/
prod-deploy.yaml
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
name: Deploy to Prod
on:
workflow_dispatch:
branches: [ main ]
concurrency:
group: prod-deploy
jobs:
prod-deploy:
if: contains( github.ref, 'refs/tags')
runs-on: biodome-amd64
steps:
- name: Biodome job setup
uses: ./../../../../home/runner/.github/actions/biodome-setup-v2
- name: Pull Secrets
run: biodome ci save-secrets
- name: Generate Github token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ env.GITHUB_APP_ID }}
private_key: ${{ env.GITHUB_APP_PRIVATE_KEY }}
- name: Wait for approval
uses: trstringer/manual-approval@v1
with:
secret: ${{ steps.generate_token.outputs.token }}
approvers: engineering
minimum-approvals: 2
issue-title: "Deploying ${{ github.ref_name }} to prod"
- name: Install Dependencies
run: npm install
- name: Run Tests
run: npm run ci
- name: Typescript Definitions
run: npm run compile
- name: npm Publish
run: npm publish --access restricted