-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (38 loc) · 1.08 KB
/
publish-packages.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
name: 📦 Release Cosmos Provider Package
on:
push:
branches: [release]
paths:
- 'packages/**'
jobs:
release:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
GH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: '16.13.0'
registry-url: 'https://npm.pkg.github.com'
scope: '@leapwallet'
publish-npm-registry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: yarn
env:
GH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
- run: yarn publish:provider
env:
GH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: yarn lint && yarn test && yarn publish:snap
env:
GH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}