Skip to content

Commit 92b6b2e

Browse files
committed
fix: use biome and release from new repo
1 parent a404885 commit 92b6b2e

29 files changed

+3666
-3201
lines changed

.github/release-please-config.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"separate-pull-requests": true,
3+
"release-type": "node",
34
"packages": {
45
"packages/iso-filecoin": {}
56
}

.github/workflows/iso-filecoin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v4
23-
- uses: pnpm/action-setup@v2
23+
- uses: pnpm/action-setup@v3
2424
with:
2525
version: latest
2626
- uses: actions/setup-node@v4

.github/workflows/release.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,13 @@ jobs:
1818
outputs:
1919
paths_released: ${{ steps.release.outputs.paths_released }}
2020
steps:
21-
- uses: google-github-actions/release-please-action@v3
21+
- uses: google-github-actions/release-please-action@v4
2222
id: release
2323
with:
2424
# needs to be personal token so release PRs can run workflows
2525
token: ${{ secrets.GH_TOKEN }}
26-
command: manifest
2726
config-file: .github/release-please-config.json
2827
manifest-file: .github/release-please-manifest.json
29-
default-branch: main
30-
release-type: node
3128
npm:
3229
needs: release
3330
if: |
@@ -38,7 +35,7 @@ jobs:
3835
id-token: write
3936
steps:
4037
- uses: actions/checkout@v4
41-
- uses: pnpm/action-setup@v2
38+
- uses: pnpm/action-setup@v3
4239
with:
4340
version: latest
4441
- uses: actions/setup-node@v4

.github/workflows/reusable-docs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
url: ${{ steps.deployment.outputs.page_url }}
2121
steps:
2222
- uses: actions/checkout@v4
23-
- uses: pnpm/action-setup@v2
23+
- uses: pnpm/action-setup@v3
2424
with:
2525
version: latest
2626
- uses: actions/setup-node@v4
@@ -31,10 +31,10 @@ jobs:
3131
- run: pnpm install
3232
- run: pnpm run lint
3333
- run: pnpm run docs
34-
- uses: actions/configure-pages@v3
35-
- uses: actions/upload-pages-artifact@v2
34+
- uses: actions/configure-pages@v4
35+
- uses: actions/upload-pages-artifact@v3
3636
with:
3737
path: ./docs
3838
- name: Deploy to GitHub Pages
3939
id: deployment
40-
uses: actions/deploy-pages@v2
40+
uses: actions/deploy-pages@v4

.vscode/settings.json

+4-18
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
11
{
2-
"editor.defaultFormatter": "esbenp.prettier-vscode",
3-
"editor.formatOnSave": true,
2+
"editor.defaultFormatter": "biomejs.biome",
43
"editor.codeActionsOnSave": {
5-
"source.fixAll.eslint": "explicit",
6-
"source.organizeImports": "never"
4+
"quickfix.biome": "explicit",
5+
"source.organizeImports.biome": "explicit"
76
},
8-
"eslint.validate": [
9-
"javascript",
10-
"javascriptreact",
11-
"typescript",
12-
"typescriptreact",
13-
"html",
14-
"nunjucks",
15-
"json",
16-
"jsonc",
17-
"json5",
18-
"markdown",
19-
"yaml",
20-
"github-actions-workflow"
21-
],
7+
"editor.formatOnSave": true,
228
"javascript.format.enable": false,
239
"javascript.preferences.importModuleSpecifierEnding": "js",
2410
"typescript.format.enable": false,

LICENSE-APACHE

-201
This file was deleted.

LICENSE-MIT

-21
This file was deleted.

README.md

+5-31
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,17 @@
1-
<div align="center">
2-
<img src="./assets/logo.png" alt="fission Logo" width="100"></img>
1+
# Filecoin Monorepo
32

4-
<h1 align="center">Fission Filecoin</h1>
5-
6-
[![Built by FISSION](https://img.shields.io/badge/built_by-⌘_Fission-purple.svg)](https://fission.codes)
7-
[![Discord](https://img.shields.io/discord/478735028319158273?logo=discord&color=mediumslateblue)](https://discord.gg/zAQBDEq)
8-
[![Discourse users](<https://img.shields.io/discourse/users?server=https%3A%2F%2Ftalk.fission.codes&logo=discourse&label=talk&color=rgb(14%2C%20118%2C%20178)>)](https://talk.fission.codes)
9-
10-
</div>
11-
12-
This monorepo contains packages to interact with the Filecoin blockchain.
3+
This monorepo contains javascript packages to interact with the Filecoin blockchain.
134

145
## Packages
156

16-
- [iso-filecoin](https://github.com/fission-codes/filecoin/tree/master/packages/iso-filecoin) - Isomorphic filecoin abstractions for RPC, signatures, address, token and wallet. Used by the [Metamask Filecoin Wallet](https://github.com/filecoin-project/filsnap).
7+
- [iso-filecoin](https://github.com/hugomrdias/filecoin/tree/main/packages/iso-filecoin) - Isomorphic filecoin abstractions for RPC, signatures, address, token and wallet. Used by the [Metamask Filecoin Wallet](https://github.com/filecoin-project/filsnap) and [Ledger Live Filecoin app](https://www.ledger.com/coin/wallet/filecoin).
178

189
## Contributing
1910

2011
Read contributing guidelines [here](.github/CONTRIBUTING.md).
2112

22-
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/fission-codes/filecoin)
13+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/hugomrdias/filecoin)
2314

2415
## License
2516

26-
This project is licensed under either of
27-
28-
- Apache License, Version 2.0, ([LICENSE-APACHE](./LICENSE-APACHE) or
29-
[http://www.apache.org/licenses/LICENSE-2.0][apache])
30-
- MIT license ([LICENSE-MIT](./LICENSE-MIT) or
31-
[http://opensource.org/licenses/MIT][mit])
32-
33-
at your option.
34-
35-
### Contribution
36-
37-
Unless you explicitly state otherwise, any contribution intentionally
38-
submitted for inclusion in the work by you, as defined in the Apache-2.0
39-
license, shall be dual licensed as above, without any additional terms or
40-
conditions.
41-
42-
[apache]: https://www.apache.org/licenses/LICENSE-2.0
43-
[mit]: http://opensource.org/licenses/MIT
17+
[MIT](./license) © [Hugo Dias](http://hugodias.me)

assets/logo.png

-18.8 KB
Binary file not shown.

biome.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.7.0/schema.json",
3+
"extends": ["@hugomrdias/configs/biome"]
4+
}

examples/iso-filecoin-cjs/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use strict'
2-
31
const { Token } = require('iso-filecoin/token')
42

5-
// eslint-disable-next-line no-console
3+
// biome-ignore lint/suspicious/noConsoleLog: <explanation>
64
console.log(Token.fromAttoFIL(1n))

0 commit comments

Comments
 (0)