17
17
branches :
18
18
- master
19
19
- release-*
20
+ - issue_223
20
21
tags :
21
22
- v*
22
23
pull_request :
@@ -40,11 +41,12 @@ jobs:
40
41
registry-url : ' https://registry.npmjs.org'
41
42
42
43
# - name: Configure to publish to @dapr/dapr
43
- # run: sed -i s#@ dapr/dapr "#"@dapr/dapr"# package.json
44
+ # run: sed -i s#" dapr-client "#"@dapr/dapr"# package.json
44
45
45
46
- name : Build Package
46
47
run : ./scripts/build.sh
47
48
49
+ # @TODO: add a depend on the test-e2e pipeline?
48
50
# - name: Run unit tests
49
51
# id: tests
50
52
# run: npm run test:unit:all
55
57
# - name: Is Release?
56
58
# if: startswith(github.ref, 'refs/tags/v')
57
59
# run: echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
60
+
61
+ # run: npm set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
62
+
63
+ # - name: Authorize us to @dapr/dapr
64
+ # run: |
65
+ # npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN_NEW }}
66
+
67
+ # - name: Show NPM Config
68
+ # run: cat ~/.npmrc
69
+
70
+ # - name: Show NPM Config
71
+ # run: npm whoami
72
+
58
73
74
+ # - name: Publish to npm (dapr-client)
75
+ # if: env.DEPLOY_PACKAGE == 'true'
76
+ # run: npm run build && npm pack && npm publish build/ --access public
77
+ # env:
78
+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
79
+
80
+ # Publish to @dapr/dapr
81
+ # note: package.json gets updated here for the new package name
59
82
- name : Publish to npm (@dapr/dapr)
60
83
# if: env.DEPLOY_PACKAGE == 'true'
61
- run : npm publish build/ --access public
84
+ run : npm publish --access public
62
85
env :
63
86
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments