Skip to content

Update chains based on latest data from chainId.network #28

Update chains based on latest data from chainId.network

Update chains based on latest data from chainId.network #28

name: Publish Release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Get package.json info
id: package_json
uses: jaywcjlove/github-action-package@main
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.package_json.outputs.version }}
release_name: v${{ steps.package_json.outputs.version }}
body: Update chains based on latest data from chainId.network