@@ -45,41 +45,19 @@ jobs:
45
45
- name : Build Package
46
46
run : ./scripts/build.sh
47
47
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
52
51
53
- # - name: Upload test coverage
54
- # uses: codecov/codecov-action@v1
52
+ - name : Upload test coverage
53
+ uses : codecov/codecov-action@v1
55
54
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
72
58
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
84
62
env :
85
63
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments