Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed Sep 28, 2023
2 parents 9f701f2 + d1c0444 commit 8545425
Show file tree
Hide file tree
Showing 672 changed files with 2,984 additions and 2,113 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
id: input_data
run: |
if [[ ${{ github.ref }} == 'refs/heads/master' ]]; then
echo "::set-output name=target::latest"
echo "target=latest" >> $GITHUB_OUTPUT
else
echo "::set-output name=target::beta"
echo "target=beta" >> $GITHUB_OUTPUT
fi
- uses: actions/setup-node@v3
Expand All @@ -33,6 +33,8 @@ jobs:
- name: Install dependencies and build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
STRAPI_TOKEN: ${{ secrets.STRAPI_TOKEN }}
STRAPI_URL: ${{ secrets.STRAPI_URL }}
run: |
yarn install
yarn publish:${{ steps.input_data.outputs.target }}
Expand All @@ -44,6 +46,18 @@ jobs:
author_email: [email protected]
message: 'Update data after publish:${{ steps.input_data.outputs.target }}'

- name: Deploy Assets to Cloudflare Pages
id: cloudflare_deployment
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: 'sw-chain-list-assets'
gitHubToken: ${{ secrets.GH_AUTOMATION_TOKEN }}
branch: ${{ github.ref_name }}
directory: './packages/chain-list-assets/public'
wranglerVersion: '3'

- name: Notify to Discord
uses: sarisia/actions-status-discord@v1
if: always()
Expand Down
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
},
"sideEffects": false,
"type": "module",
"version": "0.2.14",
"versions": {
"git": "0.2.14",
"npm": "0.2.14"
},
"version": "0.2.15-beta.10",
"workspaces": [
"packages/*"
],
Expand All @@ -23,14 +19,18 @@
"export-chains": "./scripts/exports/export-chains.js",
"export-xcm-channels": "./scripts/exports/export-xcm-channels.js",
"generate-logo-map": "./scripts/generators/generate-logo-map.js",
"set-version": "./scripts/set-version.mjs",
"strapi-fetch-chain-assets": "./scripts/strapi/fetch-chain-assets.mjs",
"strapi-fetch-chains": "./scripts/strapi/fetch-chains.mjs",
"strapi-multi-chain-assets": "./scripts/strapi/fetch-multi-chain-assets.mjs",
"subwallet-ci-ghact-build": "./scripts/subwallet-ci-ghact-build.mjs",
"subwallet-dev-build-ts": "./scripts/subwallet-dev-build-ts.mjs",
"validate-asset-refs": "./scripts/validations/validate-asset-refs.js",
"validate-chains": "./scripts/validations/validate-chains.js",
"validate-tokens": "./scripts/validations/validate-tokens.js"
},
"scripts": {
"build": "yarn generate-logo-map && subwallet-dev-build-ts && cp -r packages/chain-list/build/data packages/chain-list/build/cjs",
"build": "yarn strapi-fetch && yarn generate-logo-map && subwallet-dev-build-ts && cp -r packages/chain-list/build/data packages/chain-list/build/cjs",
"build:beta": "BRANCH_NAME=dev yarn build",
"build:extra": "",
"build:latest": "BRANCH_NAME=master yarn build",
Expand All @@ -44,6 +44,7 @@
"postinstall": "polkadot-dev-yarn-only && patch-package",
"publish:beta": "yarn build:beta && cd ./packages/chain-list/build && npm publish --target --tag beta",
"publish:latest": "yarn build:latest && cd ./packages/chain-list/build && npm publish --target --tag latest",
"strapi-fetch": "yarn strapi-fetch-chains && yarn strapi-fetch-chain-assets && yarn strapi-multi-chain-assets",
"test": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --coverage --forceExit --runInBand --testPathIgnorePatterns e2e",
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
},
Expand All @@ -57,9 +58,12 @@
"@json2csv/plainjs": "^6.1.3",
"@polkadot/dev": "^0.67.167",
"@types/jest": "^29.2.4",
"axios": "^1.5.1",
"bignumber.js": "^9.1.1",
"copyfiles": "^2.4.1",
"gh-pages": "^5.0.0",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0",
"patch-package": "^6.4.7",
"postinstall-postinstall": "^2.1.0"
},
Expand Down
25 changes: 25 additions & 0 deletions packages/chain-list-assets/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"author": "AnhMTV <[email protected]>",
"bugs": "https://github.com/Koniverse/SubWallet-Chain/issues",
"contributors": [],
"description": "Open-source package to manage chains, tokens and other information",
"engines": {
"node": ">=14.0.0"
},
"homepage": "https://github.com/Koniverse/SubWallet-Chain/tree/master/packages/chain-list#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@subwallet/chain-list-assets",
"repository": {
"directory": "packages/chain-list-assets",
"type": "git",
"url": "https://github.com/Koniverse/SubWallet-Chain.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
],
"type": "module",
"version": "0.2.15-beta.10",
"main": "index.js"
}
13 changes: 13 additions & 0 deletions packages/chain-list-assets/public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>SubWallet ChainList</title>
</head>
<body>
<h1>Opps! File not found.</h1>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8545425

Please sign in to comment.