Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
sarvesh raut authored and sarvesh raut committed Dec 20, 2024
2 parents 392609e + 85775c8 commit 131703d
Show file tree
Hide file tree
Showing 70 changed files with 17,233 additions and 577 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["website", "next"]
}
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

120 changes: 0 additions & 120 deletions .eslintrc.js

This file was deleted.

4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# https://help.github.com/en/articles/about-code-owners

* @0chain
* @ranajahanzaib
* @ashuvssut
3 changes: 1 addition & 2 deletions .github/MAINTAINERS
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ranajahanzaib
raymishtech
ashuvssut
54 changes: 54 additions & 0 deletions .github/workflows/changeset-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Release
on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write
pull-requests: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Action checkout
uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable

- name: Setting up Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"

- name: Add Git submodules present at example/*
run: git submodule update --init --recursive

- name: Installing dependencies
run: yarn install

- name: tsc Linting and Build
working-directory: lib/js-sdk
run: yarn lint && yarn build

- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: yarn publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Export Error Logs as an Artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: NPM error-logs
path: /home/runner/.npm/_logs/
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI
on:
push:
branches:
- "**"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Action checkout
uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable

- name: Setting up Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"

- name: Add Git submodules present at example/*
run: git submodule update --init --recursive

- name: Install dependencies
run: yarn install

- name: tsc Linting
working-directory: lib/js-sdk
run: yarn lint

- name: Build SDK dist/
working-directory: lib/js-sdk
run: yarn build
Loading

0 comments on commit 131703d

Please sign in to comment.