Skip to content

Commit 539322b

Browse files
authored
Typescript client (#32)
* gha: publish typescript client instead * fixup! gha: publish typescript client instead
1 parent e924f54 commit 539322b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/publish-clients.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,22 @@ jobs:
1414

1515
- name: Generate client
1616
run: |
17-
docker run --rm -v ${GITHUB_WORKSPACE}:/local openapitools/openapi-generator-cli generate -i /local/api/notification-service.yaml -g javascript -o /local/client -p projectName="@commitdev/zero-notification-service-client" -p projectDescription="Generated client for zero-notification-service" -p projectVersion="${{ github.event.release.tag_name }}" -p moduleName="NotificationService"
17+
docker run --rm -v ${GITHUB_WORKSPACE}:/local openapitools/openapi-generator:cli-5.3.x \
18+
generate -i /local/api/notification-service.yaml \
19+
-g typescript \
20+
-o /local/client \
21+
-p projectName="@commitdev/zero-notification-service-client" \
22+
-p projectDescription="Generated client for zero-notification-service" \
23+
-p projectVersion="${{ github.event.release.tag_name }}" \
24+
-p moduleName="NotificationService"
1825
sudo chmod -R a+rw ${GITHUB_WORKSPACE}
1926
2027
- uses: actions/setup-node@v1
2128
with:
22-
node-version: '12.x'
29+
node-version: '14.x'
2330
registry-url: 'https://registry.npmjs.org'
2431
- run: cd client; npm install
32+
- run: cd client; npm run build
2533
- run: cd client; npm publish --access public
2634
env:
2735
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)