Skip to content

Commit

Permalink
major(complete-rewrite): upgrade to new tokenlist (#70)
Browse files Browse the repository at this point in the history
* major(complete-rewrite): upgrade to new tokenlist

* chore(imports): remove unused imports

* chore(gh): update github action to use NPM_TOKEN
  • Loading branch information
tokdaniel authored Oct 14, 2024
1 parent 54fa423 commit 9423254
Show file tree
Hide file tree
Showing 75 changed files with 6,164 additions and 76,281 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALCHEMY_ID=
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: publish

on:
workflow_dispatch:
push:
branches: [main]

permissions:
contents: write
issues: write
pull-requests: write
id-token: write

jobs:
build_and_publish:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' && !startsWith(github.event.head_commit.message, 'ignore(') }}
env:
ALCHEMY_ID: ${{ secrets.ALCHEMY_ID }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install Dependencies
run: bun install --frozen-lockfile
- name: Test
run: bun coverage
- uses: gaelgirodon/ci-badges-action@v1.5.0
with:
gist-id: a7c9182c954b150894614d212eb54520
token: ${{ secrets.GIST_TOKEN }}
- name: Build
run: bun run list:build
- name: Bundle
run: bun run list:bundle
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --branches main

- uses: peter-evans/create-pull-request@v7
with:
commit-message: |
ignore(update): Auto update versions to the latest
Update indexcoop.tokenlist.json to latest
Update package.json to latest
signoff: true
branch: "auto-update/versions"
title: "Auto: Update versions to latest"
token: ${{ secrets.NPM_TOKEN }}
49 changes: 0 additions & 49 deletions .github/workflows/publish.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: test

on:
workflow_dispatch:
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
env:
ALCHEMY_ID: ${{ secrets.ALCHEMY_ID }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Dependencies
run: bun install --frozen-lockfile
- name: Test
run: bun test
- name: Build
run: bun run list:build
183 changes: 174 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,176 @@
.DS_Store
.nyc_output
.vscode
build
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore

# Logs

logs
_.log
npm-debug.log_
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Caches

.cache

# Diagnostic reports (https://nodejs.org/api/report.html)

report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json

# Runtime data

pids
_.pid
_.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover

lib-cov

# Coverage directory used by tools like istanbul

coverage
*.lcov
junit.xml

# nyc test coverage

.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)

.grunt

# Bower dependency directory (https://bower.io/)

bower_components

# node-waf configuration

.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)

build/Release

# Dependency directories

node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)

web_modules/

# TypeScript cache

*.tsbuildinfo

# Optional npm cache directory

.npm

# Optional eslint cache

.eslintcache

# Optional stylelint cache

.stylelintcache

# Microbundle cache

.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history

.node_repl_history

# Output of 'npm pack'

*.tgz

# Yarn Integrity file

.yarn-integrity

# dotenv environment variable files

.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)

.parcel-cache

# Next.js build output

.next
out

# Nuxt.js build / generate output

.nuxt
dist
node_modules
npm-debug.log
yarn-error.log
yarn.lock
__pycache__

# Gatsby files

# Comment in the public line in if your project uses Gatsby and not Next.js

# https://nextjs.org/blog/next-9-1#public-directory-support

# public

# vuepress build output

.vuepress/dist

# vuepress v2.x temp and cache directory

.temp

# Docusaurus cache and generated files

.docusaurus

# Serverless directories

.serverless/

# FuseBox cache

.fusebox/

# DynamoDB Local files

.dynamodb/

# TernJS port file

.tern-port

# Stores VSCode versions used for testing VSCode extensions

.vscode-test

# yarn v2

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# IntelliJ based IDEs
.idea

# Finder (MacOS) folder config
.DS_Store
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
v20.12.2
3 changes: 0 additions & 3 deletions .prettierrc.js

This file was deleted.

Loading

0 comments on commit 9423254

Please sign in to comment.