Skip to content

Commit 396d560

Browse files
committed
update deploy wf
1 parent 609eb07 commit 396d560

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
release:
55
types:
66
- published
7+
workflow_dispatch:
78

89
jobs:
910
deploy:
@@ -49,23 +50,31 @@ jobs:
4950
node-version: 22
5051
registry-url: "https://registry.npmjs.org"
5152

53+
- name: Generate SDK with Updated Version
54+
uses: Bandwidth/[email protected]
55+
with:
56+
openapi-generator-version: 7.9.0
57+
language: typescript-axios
58+
additional-properties: --additional-properties=npmVersion=$PACKAGE_VERSION
59+
5260
- name: Install Packages and Test
5361
run: |
62+
cat package.json
5463
yarn
5564
npm install -g @stoplight/prism-cli
5665
prism mock ./bandwidth.yml & yarn test-unit
5766
shell: bash
5867

59-
- name: Publish npm Package
60-
run: |
61-
npm version $PACKAGE_VERSION --no-git-tag-version
62-
npm publish --access public
63-
env:
64-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
68+
# - name: Publish npm Package
69+
# run: |
70+
# npm version $PACKAGE_VERSION --no-git-tag-version
71+
# npm publish --access public
72+
# env:
73+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
6574

66-
- uses: Bandwidth/[email protected]
67-
if: always()
68-
with:
69-
job-status: ${{ job.status }}
70-
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
71-
slack-channel: ${{ secrets.SLACK_CHANNEL }}
75+
# - uses: Bandwidth/[email protected]
76+
# if: always()
77+
# with:
78+
# job-status: ${{ job.status }}
79+
# slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
80+
# slack-channel: ${{ secrets.SLACK_CHANNEL }}

0 commit comments

Comments
 (0)