@@ -41,35 +41,35 @@ jobs:
41
41
run : ./scripts/build.sh
42
42
43
43
# @TODO: add a depend on the test-e2e pipeline?
44
- # - name: Run unit tests
45
- # id: tests
46
- # run: npm run test:unit:all
44
+ - name : Run unit tests
45
+ id : tests
46
+ run : npm run test:unit:all
47
47
48
- # - name: Upload test coverage
49
- # uses: codecov/codecov-action@v1
48
+ - name : Upload test coverage
49
+ uses : codecov/codecov-action@v1
50
50
51
- # - name: Is Release?
52
- # if: startswith(github.ref, 'refs/tags/v')
53
- # run: echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
51
+ - name : Is Release?
52
+ if : startswith(github.ref, 'refs/tags/v')
53
+ run : echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV
54
54
55
55
# note: package.json gets updated here for the new package name
56
56
- name : Publish to npm (@dapr/dapr)
57
- # if: env.DEPLOY_PACKAGE == 'true'
57
+ if : env.DEPLOY_PACKAGE == 'true'
58
58
run : npm publish --access public
59
59
env :
60
60
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
61
61
62
62
- name : " [dapr-client] Configure to publish to dapr-client for deprecation notice reasons"
63
- # if: env.DEPLOY_PACKAGE == 'true'
63
+ if : env.DEPLOY_PACKAGE == 'true'
64
64
run : sed -i s#"@dapr/dapr"#"dapr-client"# package.json
65
65
66
66
- name : " [dapr-client] Build Package"
67
- # if: env.DEPLOY_PACKAGE == 'true'
67
+ if : env.DEPLOY_PACKAGE == 'true'
68
68
run : ./scripts/build.sh
69
69
70
70
# note: package.json gets updated here for the new package name
71
71
- name : " [dapr-client] Publish to npm (dapr-client)"
72
- # if: env.DEPLOY_PACKAGE == 'true'
72
+ if : env.DEPLOY_PACKAGE == 'true'
73
73
run : npm publish --access public
74
74
env :
75
75
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments