-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from rkalis/main
Split up release process into PR + release
- Loading branch information
Showing
6 changed files
with
1,214 additions
and
46 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Create Update PR | ||
on: | ||
workflow_dispatch: | ||
# Auto-update every week on midnight Monday | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
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: Generate new files | ||
run: yarn generate && yarn build | ||
- name: Update version (major if there are deletions in enums.ts, otherwise minor) | ||
run: git diff src/enums.ts | grep "^-[^-]" && yarn version --major --no-git-tag-version || yarn version --minor --no-git-tag-version | ||
- name: Commit and create PR | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: Update chains based on latest data from chainId.network | ||
title: Update chains based on latest data from chainId.network | ||
body: Update chains based on latest data from chainId.network | ||
branch: update-chains | ||
delete-branch: true |
22 changes: 6 additions & 16 deletions
22
.github/workflows/update.yml → .github/workflows/publish-release.yml
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
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
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
Oops, something went wrong.