-
Notifications
You must be signed in to change notification settings - Fork 9
34 lines (34 loc) · 1006 Bytes
/
main.yml
File metadata and controls
34 lines (34 loc) · 1006 Bytes
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
name: Main
on: [push]
jobs:
build_publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.14'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm run lint --fix
- run: npm run pretty
- run: npm test
env:
COINMARKETCAP_KEY: ${{ secrets.COINMARKETCAP_KEY }}
- run: npm run build
- run: npm run link
- run: npm run b-tsc
- run: npm run b-test
env:
COINMARKETCAP_KEY: ${{ secrets.COINMARKETCAP_KEY }}
- uses: codecov/codecov-action@v4
- run: npm publish || true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm run p-reinstall
- run: npm run p-test
env:
COINMARKETCAP_KEY: ${{ secrets.COINMARKETCAP_KEY }}