Skip to content

Commit d57dbf0

Browse files
Change workflow to match working version
Signed-off-by: Xavier Geerinck <[email protected]>
1 parent 84da4aa commit d57dbf0

File tree

1 file changed

+11
-33
lines changed

1 file changed

+11
-33
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -45,41 +45,19 @@ jobs:
4545
- name: Build Package
4646
run: ./scripts/build.sh
4747

48-
# @TODO: add a depend on the test-e2e pipeline?
49-
# - name: Run unit tests
50-
# id: tests
51-
# run: npm run test:unit:all
48+
- name: Run unit tests
49+
id: tests
50+
run: npm run test:unit:all
5251

53-
# - name: Upload test coverage
54-
# uses: codecov/codecov-action@v1
52+
- name: Upload test coverage
53+
uses: codecov/codecov-action@v1
5554

56-
# - name: Is Release?
57-
# if: startswith(github.ref, 'refs/tags/v')
58-
# run: echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
59-
60-
# run: npm set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
61-
62-
# - name: Authorize us to @dapr/dapr
63-
# run: |
64-
# npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN_NEW }}
65-
66-
# - name: Show NPM Config
67-
# run: cat ~/.npmrc
68-
69-
# - name: Show NPM Config
70-
# run: npm whoami
71-
55+
- name: Is Release?
56+
if: startswith(github.ref, 'refs/tags/v')
57+
run: echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
7258

73-
# - name: Publish to npm (dapr-client)
74-
# if: env.DEPLOY_PACKAGE == 'true'
75-
# run: npm run build && npm pack && npm publish build/ --access public
76-
# env:
77-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
78-
79-
# Publish to @dapr/dapr
80-
# note: package.json gets updated here for the new package name
81-
- name: Publish to npm (@dapr/dapr)
82-
# if: env.DEPLOY_PACKAGE == 'true'
83-
run: npm publish --access public
59+
- name: Publish to npm
60+
if: env.DEPLOY_PACKAGE == 'true'
61+
run: npm run build && npm pack && npm publish build/ --access public
8462
env:
8563
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)