Skip to content

Commit

Permalink
feat: js sdk publish workflow (#196)
Browse files Browse the repository at this point in the history
* feat: add workflow for publishing the js sdk

* bump: bump js package for testing
  • Loading branch information
m30m authored Oct 29, 2024
1 parent bcad211 commit 4fbfa7b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish-js-sdks.yml
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 }}
3 changes: 2 additions & 1 deletion .github/workflows/pypi-express-relay-utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ env:
PYTHON_VERSION: "3.11"

jobs:
deploy:
publish-python:
name: Publish Python SDK Package to PyPI
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions sdk/js/package-lock.json

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

2 changes: 1 addition & 1 deletion sdk/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/express-relay-js",
"version": "0.12.2",
"version": "0.12.3",
"description": "Utilities for interacting with the express relay protocol",
"homepage": "https://github.com/pyth-network/per/tree/main/sdk/js",
"author": "Douro Labs",
Expand Down

0 comments on commit 4fbfa7b

Please sign in to comment.