File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
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
3
2
curl -XDELETE https://api.bintray.com/packages/terminusdb/npm-dev/terminusdb:terminusdb-client -u " rrooij:$BINTRAY_API_TOKEN "
4
3
npm publish --access=public
5
4
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,13 +14,15 @@ 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')"
20
17
- name : Use Node.js ${{ matrix.node-version }}
21
18
uses : actions/setup-node@v1
22
19
with :
23
20
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
24
26
- run : npm install
25
27
- run : npm run build
26
- - run : bash ".ci/publish_$BRANCH_NAME .sh"
28
+ - run : bash ".ci/publish_${GITHUB_REF##*/} .sh"
You can’t perform that action at this time.
0 commit comments