-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.12 KB
/
regen-chaintypes.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
name: regenerate chaintypes
on:
workflow_dispatch:
schedule:
- cron: '00 00,12 * * *' # twice a day
jobs:
regen-chaintypes:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
with:
token: ${{secrets.GH_PAT_CHAINTYPES}}
- name: Setup GH user
run: |
git config --global user.email "hi@coongcrafts.io"
git config --global user.name "debot"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- run: yarn install --immutable
- name: Generate chaintypes
run: yarn gen && yarn build
- name: Commit changes && publish release
run: |
git add -A
git diff-index --quiet HEAD || { git commit -m "chore: regenerate chaintypes" && npx lerna publish prerelease -m "chore(release): publish %s - [skip ci]" --no-private --yes; }