Skip to content

Commit

Permalink
chore: update readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdev3 committed Dec 14, 2023
1 parent 7cd4cd4 commit 074d60f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,12 @@ jobs:
yarn install
yarn build
- name: Setup git profile
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Publish to NPM
id: publish
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
package: "./package.json"
dry-run: ${{ github.event.inputs.dry-run }}

- if: ${{ steps.publish.outputs.type != 'none' }}
run: |
Expand Down
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
# Squid Types

Squid types used on the graph, api and sdk
Squid types used on the graph, api and sdk.

### LINTER & PRETTIER

This project has installed prettier and linter rules, with husky we ensure pre-commit and pre-push validation.

```bash
yarn lint
```

```bash
yarn lint:fix
```

```bash
yarn format
```

### VSCODE

Create `.vscode/setting.json` for auto-saving linter and prettier format

```json
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
```

# RELEASE

NPM package publish is automated with github actions, follow these steps:

1 - Create a PR to `develop` branch updating `package.json` version. (review, approve and merge)

2 - Create a PR from `develop` to `main`. (review, approve and merge)

Once the PR to `main` is merged, this commit on this branch gonna trigger automatically the release to NPM, please make sure you update correctly the version.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@0xsquid/squid-types",
"version": "0.1.45",
"version": "0.1.46",
"description": "JS and TS types relating to 0xsquid related projects.",
"main": "dist/index.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 074d60f

Please sign in to comment.