Skip to content

Commit

Permalink
Improve CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gndelia committed Oct 30, 2024
1 parent 3e1b8be commit a5521ab
Show file tree
Hide file tree
Showing 13 changed files with 2,172 additions and 24 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["bloq"]
}
15 changes: 15 additions & 0 deletions .github/workflows/js-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: JS Checks

on:
pull_request:
push:

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

jobs:
js-checks:
uses: hemilabs/actions/.github/workflows/js-checks.yml@main
with:
node-versions: '["16", "18", "20", "22"]'
11 changes: 11 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: NPM Publish

on:
release:
types:
- published

jobs:
npm-publish:
uses: hemilabs/actions/.github/workflows/npm-publish.yml@main
secrets: inherit
15 changes: 0 additions & 15 deletions .github/workflows/publish.yml

This file was deleted.

1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @hemilabs/token-list

![NPM Version](https://img.shields.io/npm/v/%40hemilabs%2Ftoken-list)

List of ERC-20 tokens in the Hemi Network chains.

## Usage
Expand All @@ -19,5 +21,5 @@ npm install @hemilabs/token-list
and then use it in your code:

```js
const hemiTokenList = require('@hemilabs/token-list')
const hemiTokenList = require("@hemilabs/token-list");
```
9 changes: 9 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const formatFiles = "prettier --ignore-unknown --write";
const sortPackageJson = "better-sort-package-json";

module.exports = {
"!(*.{js,json,md,ts,tsx,yml}|package.json)": [formatFiles],
"*.{js,md,ts,tsx,yml}": [formatFiles],
"src/*.{json}": [formatFiles],
"package.json": [sortPackageJson, formatFiles],
};
Loading

0 comments on commit a5521ab

Please sign in to comment.