-
Notifications
You must be signed in to change notification settings - Fork 8
56 lines (49 loc) · 1.4 KB
/
release.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Semantic Release 🚀
on:
push:
branches: ["main"]
permissions:
contents: read
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout ts-sdk Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
token: ${{ secrets.NIBIBOT_GIT_TOKEN }}
- name: Checkout nibiru Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
repository: NibiruChain/nibiru
ref: releases/v0.21.x
path: "nibiru"
token: ${{ secrets.NIBIBOT_GIT_TOKEN }}
- name: Setup NodeJS and npm
uses: actions/setup-node@v3
with:
node-version: "lts/hydrogen"
cache: "yarn"
- name: yarn install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: yarn build
uses: borales/actions-yarn@v4
with:
cmd: build
- name: yarn semantic-release
uses: borales/actions-yarn@v4
env:
GITHUB_TOKEN: ${{ secrets.NIBIBOT_GIT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
cmd: semantic-release