20
20
- issue_223
21
21
tags :
22
22
- v*
23
- pull_request :
24
- branches :
25
- - master
26
- - release-*
27
23
28
24
jobs :
29
25
build :
40
36
with :
41
37
node-version : ${{ env.NODE_VER }}
42
38
registry-url : ' https://registry.npmjs.org'
43
-
44
- # - name: Configure to publish to @dapr/dapr
45
- # run: sed -i s#"dapr-client"#"@dapr/dapr"# package.json
46
39
47
40
- name : Build Package
48
41
run : ./scripts/build.sh
@@ -59,28 +52,23 @@ jobs:
59
52
# if: startswith(github.ref, 'refs/tags/v')
60
53
# run: echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
61
54
62
- # run: npm set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
63
-
64
- # - name: Authorize us to @dapr/dapr
65
- # run: |
66
- # npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN_NEW }}
67
-
68
- # - name: Show NPM Config
69
- # run: cat ~/.npmrc
70
-
71
- # - name: Show NPM Config
72
- # run: npm whoami
55
+ # note: package.json gets updated here for the new package name
56
+ - name : Publish to npm (@dapr/dapr)
57
+ # if: env.DEPLOY_PACKAGE == 'true'
58
+ run : npm publish --access public
59
+ env :
60
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
73
61
74
-
75
- # - name: Publish to npm (dapr-client)
76
- # if: env.DEPLOY_PACKAGE == 'true'
77
- # run: npm run build && npm pack && npm publish build/ --access public
78
- # env:
79
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62
+ - name : [dapr-client] Configure to publish to dapr-client for deprecation notice reasons
63
+ # if: env.DEPLOY_PACKAGE == 'true'
64
+ run : sed -i s#"@dapr/dapr"#"dapr-client"# package.json
65
+
66
+ - name : [dapr-client] Build Package
67
+ # if: env.DEPLOY_PACKAGE == 'true'
68
+ run : ./scripts/build.sh
80
69
81
- # Publish to @dapr/dapr
82
70
# note: package.json gets updated here for the new package name
83
- - name : Publish to npm (@ dapr/dapr )
71
+ - name : [dapr-client] Publish to npm (dapr-client )
84
72
# if: env.DEPLOY_PACKAGE == 'true'
85
73
run : npm publish --access public
86
74
env :
0 commit comments