2020 - issue_223
2121 tags :
2222 - v*
23- pull_request :
24- branches :
25- - master
26- - release-*
2723
2824jobs :
2925 build :
4036 with :
4137 node-version : ${{ env.NODE_VER }}
4238 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
4639
4740 - name : Build Package
4841 run : ./scripts/build.sh
@@ -59,28 +52,23 @@ jobs:
5952 # if: startswith(github.ref, 'refs/tags/v')
6053 # run: echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
6154
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 }}
7361
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
8069
81- # Publish to @dapr/dapr
8270 # 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 )
8472 # if: env.DEPLOY_PACKAGE == 'true'
8573 run : npm publish --access public
8674 env :
0 commit comments