Skip to content

Commit d07458c

Browse files
committed
ci: run npm install after bintray setup
1 parent e380c93 commit d07458c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.ci/publish_dev.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
curl -u "rrooij:$BINTRAY_API_TOKEN" https://api.bintray.com/npm/terminusdb/npm-dev/auth > .npmrc
32
curl -XDELETE https://api.bintray.com/packages/terminusdb/npm-dev/terminusdb:terminusdb-client -u "rrooij:$BINTRAY_API_TOKEN"
43
npm publish --access=public
54
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: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ 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')"
2017
- name: Use Node.js ${{ matrix.node-version }}
2118
uses: actions/setup-node@v1
2219
with:
2320
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
2426
- run: npm install
2527
- run: npm run build
26-
- run: bash ".ci/publish_$BRANCH_NAME.sh"
28+
- run: bash ".ci/publish_${GITHUB_REF##*/}.sh"

0 commit comments

Comments
 (0)