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 11#! /bin/bash
2+ curl -u " rrooij:$BINTRAY_API_TOKEN " https://api.bintray.com/npm/terminusdb/npm-dev/auth > .npmrc
23curl -XDELETE https://api.bintray.com/packages/terminusdb/npm-dev/terminusdb:terminusdb-client -u " rrooij:$BINTRAY_API_TOKEN "
34npm publish
45curl -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:
1414 steps :
1515 - name : Checkout
1616 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')"
1720 - name : Use Node.js ${{ matrix.node-version }}
1821 uses : actions/setup-node@v1
1922 with :
2023 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
2624 - run : npm install
2725 - 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