Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: enable continuous deployment #302

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": "detect"
}
},
"ignorePatterns": ["src/types/v3", "src/abis/types", "src/locales/", "node_modules/", "yarn.lock", "dist/"],
"ignorePatterns": ["dist/", "dts/", "node_modules/", "src/__generated__/", "src/types/v3/", "src/abis/types/", "src/locales/", "yarn.lock"],
"extends": [
"react-app",
"plugin:react/recommended",
Expand Down
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ updates:
allow:
- dependency-name: "@uniswap/token-lists"
- dependency-name: "@uniswap/default-token-list"
- dependency-name: "@uniswap/redux-multicall"
31 changes: 0 additions & 31 deletions .github/workflows/crowdin-download.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/crowdin-upload.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/lint.yml

This file was deleted.

34 changes: 21 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: Release

on:
workflow_dispatch: # manually
inputs:
dry_run:
description: Skip publishing
required: false
default: true
type: boolean
push:
branches:
- main

jobs:
release:
Expand All @@ -17,15 +13,27 @@ jobs:
- uses: ./.github/actions/setup
- run: yarn prepare

- run: yarn test
if: success()
- run: yarn i18n:extract

- run: yarn test:e2e
if: success()
- uses: crowdin/github-action@1.4.8
with:
upload_sources: true
download_translations: true
localization_branch_name: main
create_pull_request: false
push_translations: false
source: 'src/locales/en-US.po'
translation: 'src/locales/%locale%.po'
crowdin_branch_name: widgets
token: ${{ secrets.CROWDIN_TOKEN }}
project_id: 458284
env:
JSON_RPC_PROVIDER: ${{ secrets.JSON_RPC_PROVIDER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: yarn test
if: success()

- run: yarn release --dry-run=${{ inputs.dry_run }}
- run: yarn release
if: success()
env:
NPM_CONFIG_USERCONFIG: /dev/null
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- main
# manual trigger
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: yarn prepare

- run: yarn lint

test:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

# generated locales
/src/locales/**/*.js
/src/locales/**/en-US.po
/src/locales/**/pseudo.po
/src/locales/**/*.po

# dependency management
package-lock.json
Expand Down Expand Up @@ -38,4 +37,4 @@ notes.txt

# generated ajv schema
/src/__generated__/*
!/src/__generated__/.gitkeep
!/src/__generated__/.gitkeep
Loading