File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ curl -u " rrooij:$BINTRAY_API_TOKEN " https://api.bintray.com/npm/terminusdb/npm-dev/auth > .npmrc
2
3
curl -XDELETE https://api.bintray.com/packages/terminusdb/npm-dev/terminusdb:terminusdb-client -u " rrooij:$BINTRAY_API_TOKEN "
3
4
npm publish
4
5
curl -T " dist/terminusdb-client.min.js" -u" rrooij:$BINTRAY_API_TOKEN " " https://api.bintray.com/content/terminusdb/terminusdb/terminusdb-client/dev/dev/terminusdb-client.min.js?publish=1&override=1"
Original file line number Diff line number Diff line change @@ -14,15 +14,13 @@ jobs:
14
14
steps :
15
15
- name : Checkout
16
16
uses : actions/checkout@v2
17
+ - name : Extract branch name
18
+ shell : bash
19
+ run : echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
17
20
- name : Use Node.js ${{ matrix.node-version }}
18
21
uses : actions/setup-node@v1
19
22
with :
20
23
node-version : 14
21
- - name : Set up bintray
22
- run :
23
- |
24
- curl -u "rrooij:$BINTRAY_API_TOKEN" https://api.bintray.com/npm/terminusdb/npm-dev/auth > .npmrc
25
- echo "@terminusdb:$(cat .npmrc)" > .npmrc
26
24
- run : npm install
27
25
- run : npm run build
28
- - run : bash ".ci/publish_${GITHUB_REF##*/} .sh"
26
+ - run : bash ".ci/publish_$BRANCH_NAME .sh"
You can’t perform that action at this time.
0 commit comments