-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
release: | ||
types: | ||
- published | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
|
@@ -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 }} |