Skip to content

Commit

Permalink
publish changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhusudhan Reddy Vuppala committed Aug 3, 2023
1 parent 9a4dc79 commit a4cd443
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 62 deletions.
60 changes: 2 additions & 58 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,11 @@ name: SDK CI-CD
on:
push:
branches:
- refactor/modernize-sdk
- release/MessagingAPI-V3-SDK

jobs:
retrieve-schema:
runs-on: ubuntu-latest
steps:
- id: openapi-to-json-schema
name: openapi to json schema
uses: telstra/[email protected]
with:
# specification-url: 'https://dev.telstra.com/sites/default/files/redocs/1620871323/messaging-api-swagger_0.yaml'
specification-url: 'https://devxspecs.s3-ap-southeast-2.amazonaws.com/openapi.yaml'
- id: list-file
name: List file
run: |
value=`ls -al ${{ github.workspace }}/openapi/${{ steps.openapi-to-json-schema.outputs.json-schema-file }}`
echo The spec file is $value
shell: bash
- id: upload-artifact
name: openapi.json
uses: actions/upload-artifact@v2
with:
name: ${{ steps.openapi-to-json-schema.outputs.json-schema-file }}
path: ${{ github.workspace }}/openapi/${{ steps.openapi-to-json-schema.outputs.json-schema-file }}

test:
runs-on: ubuntu-latest
needs:
- retrieve-schema
steps:
- uses: actions/checkout@v2
- name: set up node
Expand All @@ -47,26 +23,14 @@ jobs:
- name: install dependencies
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: |
npm install
- id: download-artifact
name: openapi.json
uses: actions/download-artifact@v2
with:
name: openapi.json
- id: copy-file
name: Copy file
run: |
value=`cp ${{ github.workspace }}/openapi.json src/messaging/openapi.json`
ls -al src/messaging/openapi.json
npm install
shell: bash
- name: run tests
run: |
npm run test
lint:
runs-on: ubuntu-latest
needs:
- retrieve-schema
steps:
- uses: actions/checkout@v2
- name: set up node
Expand All @@ -83,16 +47,6 @@ jobs:
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: |
npm install
- id: download-artifact
name: openapi.json
uses: actions/download-artifact@v2
with:
name: openapi.json
- id: copy-file
name: Copy file
run: |
value=`cp ${{ github.workspace }}/openapi.json src/messaging/openapi.json`
ls -al src/messaging/openapi.json
shell: bash
- name: run linting
run: |
Expand All @@ -119,16 +73,6 @@ jobs:
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: |
npm install
- id: download-artifact
name: openapi.json
uses: actions/download-artifact@v2
with:
name: openapi.json
- id: copy-file
name: Copy file
run: |
value=`cp ${{ github.workspace }}/openapi.json src/messaging/openapi.json`
ls -al src/messaging/openapi.json
shell: bash
- name: create .npmrc
run: |
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.23",
"version": "3.0.0",
"license": "Apache-2.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down Expand Up @@ -27,7 +27,7 @@
"trailingComma": "es5"
},
"name": "@telstra/messaging",
"author": "Chris Trewin",
"author": "Madhusudhan Vuppala",
"module": "dist/messaging",
"size-limit": [
{
Expand Down

0 comments on commit a4cd443

Please sign in to comment.