-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (43 loc) · 1.19 KB
/
publish-dapp-kit.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
name: Publish GitHub NPM Packages
on:
push:
tags:
- '*'
permissions:
contents: read
packages: write
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
- run: yarn install:all
- run: yarn build
- name: Publish DApp-Kit
run: |
cd packages/dapp-kit
yarn version --no-git-tag-version --new-version ${{ github.ref_name }}
yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Publish DApp-Kit-UI
run: |
cd packages/dapp-kit-ui
yarn version --no-git-tag-version --new-version ${{ github.ref_name }}
yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Publish DApp-Kit-React
run: |
cd packages/dapp-kit-react
yarn version --no-git-tag-version --new-version ${{ github.ref_name }}
yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}