-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: js sdk publish workflow (#196)
* feat: add workflow for publishing the js sdk * bump: bump js package for testing
- Loading branch information
Showing
4 changed files
with
40 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Publish Express Relay JS packages | ||
|
||
on: | ||
push: | ||
tags: | ||
- "js-v*" | ||
jobs: | ||
publish-js: | ||
name: Publish Javascript SDK Package to NPM | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: "package.json" | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
working-directory: sdk/js/ | ||
|
||
- name: Run tests | ||
run: npm test # Ensure your tests pass before publishing | ||
working-directory: sdk/js/ | ||
|
||
- name: Build package | ||
run: npm run build # If your package requires a build step | ||
working-directory: sdk/js/ | ||
|
||
- name: Publish to npm | ||
run: npm publish | ||
working-directory: sdk/js/ | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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