Skip to content

Commit c95e429

Browse files
Found the issue, ensure a secret store is configured:
Signed-off-by: Xavier Geerinck <[email protected]>
1 parent b1264a4 commit c95e429

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ on:
2020
- issue_223
2121
tags:
2222
- v*
23-
pull_request:
24-
branches:
25-
- master
26-
- release-*
2723

2824
jobs:
2925
build:
@@ -40,9 +36,6 @@ jobs:
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

Comments
 (0)