Skip to content

Commit e7df620

Browse files
committed
Revert "ci: run npm install after bintray setup"
This reverts commit d07458c.
1 parent 8da38ce commit e7df620

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.ci/publish_dev.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
curl -u "rrooij:$BINTRAY_API_TOKEN" https://api.bintray.com/npm/terminusdb/npm-dev/auth > .npmrc
23
curl -XDELETE https://api.bintray.com/packages/terminusdb/npm-dev/terminusdb:terminusdb-client -u "rrooij:$BINTRAY_API_TOKEN"
34
npm publish
45
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"

.github/workflows/workflow.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)