-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (33 loc) · 1.19 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
38
39
40
41
name: Publish package
on:
release:
types: [created]
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Setup npmrc
run: |
echo "@sky-mavis:registry=https://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" >> .npmrc
- name: Install dependencies
run: cd packages/connect && yarn
- name: Build
run: cd packages/connect && yarn build
- name: Publish @sky-mavis/tanto-connect
run: cd packages/connect && npm publish --access=public
if: ${{ true == startsWith(github.event.release.tag_name, 'tanto-connect') }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Publish @sky-mavis/tanto-wagmi
run: cd packages/wagmi && npm publish --access=public
if: ${{ true == startsWith(github.event.release.tag_name, 'tanto-wagmi') }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}