-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (32 loc) · 1.08 KB
/
release.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
name: NPM Release
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lerna:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.CD_GITHUB_APP_ID }}
private-key: ${{ secrets.CD_GITHUB_APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn --immutable
- run: yarn lerna version --no-private --conventional-commits --create-release github --generate-release-notes --y
- run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
yarn run publish --y
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}