Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVEXP-592: Add workflow for publication #144

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Packages

on:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Authenticate to npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Install dependencies
run: yarn install

- name: Build packages
run: yarn run build

- name: Run tests
run: yarn run test
JPPortier marked this conversation as resolved.
Show resolved Hide resolved

- name: Publish packages
run: |
cd packages/sdk-client && npm publish
cd ../numbers && npm publish
cd ../sms && npm publish
cd ../verification && npm publish
cd ../voice && npm publish
cd ../conversation && npm publish
cd ../fax && npm publish
cd ../elastic-sip-trunking && npm publish
cd ../sdk-core && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion packages/conversation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"devDependencies": {},
"publishConfig": {
"directory": "dist"
"directory": "dist",
"access": "public"
}
}
3 changes: 2 additions & 1 deletion packages/elastic-sip-trunking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
},
"devDependencies": {},
"publishConfig": {
"directory": "dist"
"directory": "dist",
"access": "public"
}
}
3 changes: 2 additions & 1 deletion packages/fax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"devDependencies": {},
"publishConfig": {
"directory": "dist"
"directory": "dist",
"access": "public"
}
}
3 changes: 2 additions & 1 deletion packages/numbers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"devDependencies": {},
"publishConfig": {
"directory": "dist"
"directory": "dist",
"access": "public"
}
}
3 changes: 2 additions & 1 deletion packages/sdk-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"typescript": "^5.2.2"
},
"publishConfig": {
"directory": "dist"
"directory": "dist",
"access": "public"
}
}
3 changes: 2 additions & 1 deletion packages/sdk-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
},
"devDependencies": {},
"publishConfig": {
"directory": "dist"
"directory": "dist",
"access": "public"
}
}
3 changes: 2 additions & 1 deletion packages/sms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"devDependencies": {},
"publishConfig": {
"directory": "dist"
"directory": "dist",
"access": "public"
}
}
3 changes: 2 additions & 1 deletion packages/verification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"devDependencies": {},
"publishConfig": {
"directory": "dist"
"directory": "dist",
"access": "public"
}
}
3 changes: 2 additions & 1 deletion packages/voice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"devDependencies": {},
"publishConfig": {
"directory": "dist"
"directory": "dist",
"access": "public"
}
}
Loading