Add PSTAKE token (#54) #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Token List | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
jobs: | |
generate: | |
name: generate | |
runs-on: ubuntu-latest | |
if: | | |
github.event.head_commit.committer.username != 'github-actions[bot]' | |
&& github.repository == 'superbridgeapp/token-lists' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
run_install: true | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Generate token list | |
run: | | |
npx tsx ./src/generate-token-list-from-data.ts | |
- name: Commit token list | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "bot(ci): generate token list" | |
file_pattern: superchain.tokenlist.json |