Skip to content

Commit

Permalink
Merge pull request #113 from effectai/dev
Browse files Browse the repository at this point in the history
Effect SDK V2.0
  • Loading branch information
Jeffrieh committed May 15, 2024
2 parents a69990c + 70149b4 commit 8d49b0e
Show file tree
Hide file tree
Showing 251 changed files with 7,747 additions and 25,581 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/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
PERMISSION=active
NETWORK_NAME=mainnet
ACTOR=eosaccountname
PRIVATE_KEY=private_key_here
PUBLIC_KEY=public_key_here
22 changes: 0 additions & 22 deletions .eslintrc.json

This file was deleted.

12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 0

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
70 changes: 70 additions & 0 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Changesets
on:
push:
branches: [main, rc]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
verify:
name: Verify
uses: ./.github/workflows/verify.yml
secrets: inherit

changesets:
name: Create version pull request
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Create Version Pull Request
uses: changesets/action@v1
with:
commit: "chore: version package"
title: "chore: version package"
version: bun changeset:version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# release:
# name: Release
# needs: verify
# runs-on: ubuntu-latest
# timeout-minutes: 5
# permissions:
# contents: write
# id-token: write

# steps:
# - name: Clone repository
# uses: actions/checkout@v4

# - uses: oven-sh/setup-bun@v1

# - name: Install dependencies
# run: bun install --frozen-lockfile

# - name: Publish to NPM
# uses: changesets/action@v1
# with:
# createGithubReleases: ${{ github.ref == 'refs/heads/main' }}
# publish: bun changeset:publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# # https://docs.npmjs.com/generating-provenance-statements
# NPM_CONFIG_PROVENANCE: true
49 changes: 0 additions & 49 deletions .github/workflows/ci.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ jobs:
project-url: https://github.com/orgs/effectai/projects/6 # bounty board project
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: bounty


34 changes: 34 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Pull request
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
verify:
name: Verify
uses: ./.github/workflows/verify.yml
secrets: inherit

# size:
# name: Size
# runs-on: ubuntu-latest
# timeout-minutes: 5

# steps:
# - name: Clone repository
# uses: actions/checkout@v4

# - name: Setup Bun
# uses: oven-sh/setup-bun@v1

# - name: Install dependencies
# run: bun install --frozen-lockfile

# - name: Report bundle size
# uses: andresz1/size-limit-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# package_manager: bun
48 changes: 48 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Verify
on:
workflow_call:
workflow_dispatch:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Lint code
run: bun format && bun lint

- uses: stefanzweifel/git-auto-commit-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: "chore: format"
commit_user_name: "github-actions[bot]"

build:
name: Build
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Build
run: bun run build

0 comments on commit 8d49b0e

Please sign in to comment.