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

Release - 2023-01-10 #2259

Merged
merged 2 commits into from
Jan 11, 2023
Merged
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
40 changes: 40 additions & 0 deletions .github/workflows/cf-deploy-files-ui-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CloudFlare Deploy - Files-UI PROD
on:
push:
branches: ["prod"]
pull_request:
branches: ["prod"]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: "16"
- run: yarn install --frozen-lockfile
- run: yarn build:files-ui
env:
REACT_APP_API_URL: "https://api.chainsafe.io/api/v1"
REACT_APP_AUTH0_CLIENT_ID: "kkdDcP8aE1O3qGdwjAV9ybu75nl1afVv"
REACT_APP_AUTH0_DOMAIN: "https://chainsafe-files.us.auth0.com"
REACT_APP_BLOCKNATIVE_ID: "c8b9121d-7d6b-4886-a92c-c6bbc86386a6"
REACT_APP_DIRECT_AUTH_NETWORK: "mainnet"
REACT_APP_FILES_UUID_VERIFIER_NAME: "chainsafe-uuid"
REACT_APP_GOOGLE_CLIENT_ID: "939164021653-lb5eiquuatf877em98bpi8v360p5vcs4.apps.googleusercontent.com"
REACT_APP_MAINTENANCE_MODE: "false"
REACT_APP_MAINTENANCE_TIMESTAMP: "0"
REACT_APP_STRIPE_PK: ${{ secrets.STRIPE_PK }}
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 2238a825c5aca59233eab1f221f7aefb
projectName: files-ui-prod
directory: ./packages/files-ui/build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/cf-deploy-files-ui-stage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CloudFlare Deploy - Files-UI STAGE
on:
push:
branches: ["dev"]
pull_request:
branches: ["dev"]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: "16"
- run: yarn install --frozen-lockfile
- run: yarn build:files-ui
env:
REACT_APP_API_URL: "https://stage-api.chainsafe.io/api/v1"
REACT_APP_AUTH0_CLIENT_ID: "kkdDcP8aE1O3qGdwjAV9ybu75nl1afVv"
REACT_APP_AUTH0_DOMAIN: "https://chainsafe-files.us.auth0.com"
REACT_APP_BLOCKNATIVE_ID: "c8b9121d-7d6b-4886-a92c-c6bbc86386a6"
REACT_APP_DIRECT_AUTH_NETWORK: "testnet"
REACT_APP_FILES_UUID_VERIFIER_NAME: "chainsafe-uuid-testnet"
REACT_APP_GOOGLE_CLIENT_ID: "939164021653-lb5eiquuatf877em98bpi8v360p5vcs4.apps.googleusercontent.com"
REACT_APP_MAINTENANCE_MODE: "false"
REACT_APP_MAINTENANCE_TIMESTAMP: "0"
REACT_APP_STRIPE_PK: ${{ secrets.STRIPE_PK_STAGE }}
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 2238a825c5aca59233eab1f221f7aefb
projectName: files-ui-stage
directory: ./packages/files-ui/build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
41 changes: 41 additions & 0 deletions .github/workflows/cf-deploy-storage-ui-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CloudFlare Deploy - Storage-UI PROD
on:
push:
branches: ["prod"]
pull_request:
branches: ["prod"]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: "16"
- run: yarn install --frozen-lockfile
- run: yarn build:storage-ui
env:
REACT_APP_API_URL: "https://api.chainsafe.io/api/v1"
REACT_APP_AUTH0_CLIENT_ID: "kkdDcP8aE1O3qGdwjAV9ybu75nl1afVv"
REACT_APP_AUTH0_DOMAIN: "https://chainsafe-files.us.auth0.com"
REACT_APP_BLOCKNATIVE_ID: "c8b9121d-7d6b-4886-a92c-c6bbc86386a6"
REACT_APP_GOOGLE_CLIENT_ID: "939164021653-lb5eiquuatf877em98bpi8v360p5vcs4.apps.googleusercontent.com"
REACT_APP_IPFS_GATEWAY: "https://ipfs.chainsafe.io/ipfs"
REACT_APP_POSTHOG_INSTANCE_ADDRESS: "https://app.posthog.com"
REACT_APP_POSTHOG_PROJECT_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY }}
REACT_APP_MAINTENANCE_MODE: "false"
REACT_APP_MAINTENANCE_TIMESTAMP: "0"
REACT_APP_STRIPE_PK: ${{ secrets.STRIPE_PK }}
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 2238a825c5aca59233eab1f221f7aefb
projectName: storage-ui-prod
directory: ./packages/storage-ui/build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
41 changes: 41 additions & 0 deletions .github/workflows/cf-deploy-storage-ui-stage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CloudFlare Deploy - Storage-UI STAGE
on:
push:
branches: ["dev"]
pull_request:
branches: ["dev"]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: "16"
- run: yarn install --frozen-lockfile
- run: yarn build:storage-ui
env:
REACT_APP_API_URL: "https://stage-api.chainsafe.io/api/v1"
REACT_APP_AUTH0_CLIENT_ID: "kkdDcP8aE1O3qGdwjAV9ybu75nl1afVv"
REACT_APP_AUTH0_DOMAIN: "https://chainsafe-files.us.auth0.com"
REACT_APP_BLOCKNATIVE_ID: "c8b9121d-7d6b-4886-a92c-c6bbc86386a6"
REACT_APP_GOOGLE_CLIENT_ID: "939164021653-lb5eiquuatf877em98bpi8v360p5vcs4.apps.googleusercontent.com"
REACT_APP_IPFS_GATEWAY: "https://stage-ipfs.chainsafe.io/ipfs"
REACT_APP_POSTHOG_INSTANCE_ADDRESS: "https://app.posthog.com"
REACT_APP_POSTHOG_PROJECT_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY }}
REACT_APP_MAINTENANCE_MODE: "false"
REACT_APP_MAINTENANCE_TIMESTAMP: "0"
REACT_APP_STRIPE_PK: ${{ secrets.STRIPE_PK_STAGE }}
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 2238a825c5aca59233eab1f221f7aefb
projectName: storage-ui-stage
directory: ./packages/storage-ui/build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
30 changes: 15 additions & 15 deletions packages/files-ui/craco.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const TerserPlugin = require("terser-webpack-plugin")
const TerserPlugin = require("terser-webpack-plugin");

module.exports = {
babel: {
presets: [],
plugins: ["macros"],
loaderOptions: (babelLoaderOptions, { env, paths }) => {
return babelLoaderOptions
}
return babelLoaderOptions;
},
},
webpack: {
configure: (webpackConfig) => ({
Expand All @@ -17,7 +17,7 @@ module.exports = {
new TerserPlugin({
terserOptions: {
parse: {
ecma: 8
ecma: 8,
},
compress: {
ecma: 5,
Expand All @@ -28,22 +28,22 @@ module.exports = {
drop_debugger: true,
},
mangle: {
safari10: true
safari10: true,
},
output: {
ecma: 5,
comments: false,
ascii_only: true
}
ascii_only: true,
},
},
parallel: 2,
cache: true,
sourceMap: true,
extractComments: false
})
]
sourceMap: false,
extractComments: false,
}),
],
},
devtool: "source-map"
})
}
}
devtool: "source-map",
}),
},
};
2 changes: 1 addition & 1 deletion packages/files-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"scripts": {
"postinstall": "yarn compile",
"start": "yarn compile && craco --max_old_space_size=4096 start",
"build": "craco --max_old_space_size=4096 --openssl-legacy-provider build",
"build": "craco --max_old_space_size=4096 build",
"sentry": "(export REACT_APP_SENTRY_RELEASE=$(sentry-cli releases propose-version); node scripts/sentry.js)",
"release": "(export REACT_APP_SENTRY_RELEASE=$(sentry-cli releases propose-version); yarn compile && yarn build && node scripts/sentry.js)",
"test": "cypress open",
Expand Down
Loading