Skip to content

Commit bfcfbbf

Browse files
chore(cd): update cd workflow (#78)
* use appropriate token name with granular access * specify whether release is latest, beta, or rc (without this it will always default to latest)
1 parent 47b8fce commit bfcfbbf

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/cd-dgraph-js-http.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ on:
66
description: "git tag to checkout and version to publish to npm"
77
required: true
88
type: string
9+
releasetype:
10+
description: "specify how to tag release on npm"
11+
required: true
12+
type: choice
13+
options:
14+
- latest
15+
- rc
16+
- beta
917
jobs:
1018
dgraph-js-http-tests:
1119
runs-on: ubuntu-20.04
@@ -66,7 +74,7 @@ jobs:
6674
registry-url: 'https://registry.npmjs.org'
6775
- name: Build dgraph-js-http package
6876
run: npm ci --legacy-peer-deps
69-
- run: npm publish
77+
- run: npm publish --tag '${{ github.event.inputs.releasetype }}'
7078
env:
71-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
79+
NODE_AUTH_TOKEN: ${{ secrets.NPM_DGRAPH_JS_HTTP_TOKEN }}
7280

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dgraph-js-http",
3-
"version": "23.0.0-rc1",
3+
"version": "23.0.0-rc2",
44
"description": "A javascript HTTP client for Dgraph",
55
"license": "Apache-2.0",
66
"repository": {

0 commit comments

Comments
 (0)