Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Dec 4, 2024
1 parent dfac73d commit fd3498d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
with:
generator: typescript-axios
openapi-file: swagger.yml
command-args: -c swagger-codegen.json
- name: Update package.json
run: python3 .github/workflows/scripts/update-package.py typescript-axios-client/package.json ${{ steps.get_version.outputs.version-without-v }}
- name: Publish package
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/scripts/update-package.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import json
import sys

package_json_path = sys.argv[1]
package_version = sys.argv[2]
package_version = sys.argv[1]

package_json = json.load(open(package_json_path))
configuration = {
"npmName": "@namada/indexer-client",
"npmVersion": package_version
}

package_json['name'] = "namada-indexer-client"
package_json['version'] = package_version
package_json['description'] = "Set of API to interact with a namada indexer."
package_json['license'] = "GPL-3.0 license"

with open(package_json_path, 'w', encoding='utf-8') as f:
json.dump(package_json, f, ensure_ascii=False, indent=4)
with open("swagger-codegen.json", 'w', encoding='utf-8') as f:
json.dump(configuration, f, ensure_ascii=False, indent=4)
5 changes: 0 additions & 5 deletions swagger-codegen.json

This file was deleted.

0 comments on commit fd3498d

Please sign in to comment.