Skip to content

Commit

Permalink
update deploy wf
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoegel committed Nov 8, 2024
1 parent 609eb07 commit 396d560
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
release:
types:
- published
workflow_dispatch:

jobs:
deploy:
Expand Down Expand Up @@ -49,23 +50,31 @@ jobs:
node-version: 22
registry-url: "https://registry.npmjs.org"

- name: Generate SDK with Updated Version
uses: Bandwidth/[email protected]
with:
openapi-generator-version: 7.9.0
language: typescript-axios
additional-properties: --additional-properties=npmVersion=$PACKAGE_VERSION

- name: Install Packages and Test
run: |
cat package.json
yarn
npm install -g @stoplight/prism-cli
prism mock ./bandwidth.yml & yarn test-unit
shell: bash

- name: Publish npm Package
run: |
npm version $PACKAGE_VERSION --no-git-tag-version
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
# - name: Publish npm Package
# run: |
# npm version $PACKAGE_VERSION --no-git-tag-version
# npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- uses: Bandwidth/[email protected]
if: always()
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-channel: ${{ secrets.SLACK_CHANNEL }}
# - uses: Bandwidth/[email protected]
# if: always()
# with:
# job-status: ${{ job.status }}
# slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
# slack-channel: ${{ secrets.SLACK_CHANNEL }}

0 comments on commit 396d560

Please sign in to comment.