forked from crypto-org-chain/chain-jslib
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 914 Bytes
/
upload.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
name: Upload library to jFrog artifactory
on:
push:
branches:
- master
jobs:
upload:
name: Upload lib to artifactory
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/checkout@v2
- name: build lib
run: |
npm install
npm run build
- name: install jfrog
run: curl -fL https://getcli.jfrog.io | sh
- name: upload to jfrog
run: ./jfrog rt config --url "${{ secrets.ARTIFACTORY_URL }}" --user "${{ secrets.ARTIFACTORY_USER }}" --password "${{ secrets.ARTIFACTORY_PASSWORD }}" --interactive=false &&
./jfrog rt npmi --build-name=GithubActions --build-number=${{ github.run_id }} "${{ secrets.ARTIFACTORY_NAME }}" &&
./jfrog rt npmp --build-name=GithubActions --build-number=${{ github.run_id }} "${{ secrets.ARTIFACTORY_NAME }}"