-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (61 loc) · 1.58 KB
/
build.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
60
61
62
63
64
65
66
67
68
69
70
name: Build Bridge
on:
workflow_dispatch:
inputs:
ref:
description: "Git Tag, Branch or SHA to build"
required: true
default: "main"
earlyaccess:
description: "Is this a early access build?"
default: true
type: boolean
secrets:
BUILD_USER_PAT:
required: true
jobs:
build:
name: Build Bridge release
timeout-minutes: 30
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
id-token: write
steps:
# clone the repo at a specific version
- name: Checkout ${{ inputs.ref }}
uses: actions/checkout@v2
with:
ref: ${{ inputs.ref }}
# human error checks
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Release Preflight Checks
run: |
python3 build-utils/preflight.py
env:
NAMI_SDK_VERSION: ${{ inputs.version }}
- name: Setup .npmrc
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Run Yarn
run: |
yarn --frozen-lockfile
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: |
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Github Release
run: |-
#sh gh-release-command.sh
echo "Release me"
env:
GITHUB_TOKEN: ${{ github.token }}