@@ -83,29 +83,17 @@ jobs:
83
83
name : " Run unit tests"
84
84
needs : determine_release
85
85
if : needs.determine_release.outputs.pending_version_available == 'true'
86
- runs-on : ubuntu-latest
87
- steps :
88
- - name : Pass unit tests
89
- run : |
90
- echo "Unit tests passed!"
91
- # TODO re-enable real tests when the release script is worked out
92
- # uses: ./.github/workflows/unit-tests.yml
86
+ uses : ./.github/workflows/unit-tests.yml
93
87
94
88
run_integration_tests :
95
89
name : " Run integration tests"
96
90
needs : determine_release
97
91
if : needs.determine_release.outputs.pending_version_available == 'true'
98
- runs-on : ubuntu-latest
99
- steps :
100
- - name : Pass integration tests
101
- run : |
102
- echo "Integration tests passed!"
103
- # TODO re-enable real tests when the release script is worked out
104
- # permissions:
105
- # id-token: write
106
- # contents: read
107
- # secrets: inherit
108
- # uses: ./.github/workflows/integ-tests.yml
92
+ permissions :
93
+ id-token : write
94
+ contents : read
95
+ secrets : inherit
96
+ uses : ./.github/workflows/integ-tests.yml
109
97
110
98
release_new_version :
111
99
name : " Release the new version"
@@ -162,13 +150,13 @@ jobs:
162
150
echo Actual release: $NEW_VERSION
163
151
exit 1
164
152
165
- # TODO Publish new version to npm and PyPi
153
+ # Publish new version to npm and PyPi
166
154
- name : Build Typescript library and publish to NPM
167
155
run : |
168
156
npm ci
169
- # npm publish --access public
170
- # env:
171
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
157
+ npm publish --access public
158
+ env :
159
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
172
160
working-directory : ./src/typescript
173
161
174
162
- name : Build Python library
@@ -177,10 +165,10 @@ jobs:
177
165
ls dist/
178
166
working-directory : ./src/python
179
167
180
- # - name: Publish to PyPI
181
- # uses: pypa/gh-action-pypi-publish@release/v1
182
- # with:
183
- # packages-dir: ./src/python/dist
168
+ - name : Publish to PyPI
169
+ uses : pypa/gh-action-pypi-publish@release/v1
170
+ with :
171
+ packages-dir : ./src/python/dist
184
172
185
173
# Publish new version to GitHub
186
174
- name : Push new version to GitHub
0 commit comments