forked from AcalaNetwork/bodhi.js
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1.09 KB
/
publish.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: Publish
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: git config email
run: git config --local user.email bodhibot@users.noreply.github.com
- name: git config name
run: git config --local user.name Bodhibot
- name: setup node env
uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: install dependencies
run: node common/scripts/install-run-rush.js update
- name: build packages
run: node common/scripts/install-run-rush.js build --verbose --to @acala-network/bodhi --to @acala-network/eth-rpc-adapter
- name: publish
run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --target-branch master --add-commit-details --set-access-level public -n ${{ secrets.NPM_AUTH_TOKEN }}
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}