diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..119bd728 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +VITE_APP_E2E=false +VITE_APP_DEFAULT_NETWORK=Devnet +VITE_APP_MINA_PROXY_MAINNET_URL=https://api.minascan.io/node/mainnet/v1/graphql +VITE_APP_MINA_PROXY_DEVNET_URL=https://api.minascan.io/node/devnet/v1/graphql diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 982ce653..45e2fe79 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -8,7 +8,7 @@ inputs: description: Turborepo token required: true runs: - using: 'composite' + using: "composite" steps: - name: Turborepo Caching Server uses: felixmosh/turborepo-gh-artifacts@v2 @@ -16,10 +16,10 @@ runs: repo-token: ${{ inputs.GITHUB_TOKEN }} server-token: ${{ inputs.TURBO_SERVER_TOKEN }} - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: .nvmrc - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 name: Install pnpm with: run_install: false diff --git a/.github/workflows/apps-extension-ci.yml b/.github/workflows/apps-extension-ci.yml index d8e4d225..c7810ad2 100644 --- a/.github/workflows/apps-extension-ci.yml +++ b/.github/workflows/apps-extension-ci.yml @@ -34,8 +34,7 @@ jobs: test_and_build: name: "Build and test" env: - VITE_APP_MODE: web - VITE_APP_DEFAULT_NETWORK: Devnet + VITE_APP_DEFAULT_NETWORK: Mainnet NODE_OPTIONS: "--max_old_space_size=4096" runs-on: ubuntu-latest steps: @@ -52,7 +51,7 @@ jobs: TURBO_API: "http://127.0.0.1:9080" TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: pallad - run: VITE_APP_MODE=$VITE_APP_MODE pnpm build:extension + run: VITE_APP_DEFAULT_NETWORK=$VITE_APP_DEFAULT_NETWORK pnpm build:extension - name: Run unit tests run: pnpm test:unit - uses: actions/upload-artifact@v3 diff --git a/.github/workflows/apps-extension-e2e.yml b/.github/workflows/apps-extension-e2e.yml index ba85e676..575be8b6 100644 --- a/.github/workflows/apps-extension-e2e.yml +++ b/.github/workflows/apps-extension-e2e.yml @@ -9,7 +9,7 @@ jobs: e2e: name: Run E2E tests env: - VITE_APP_MODE: web + VITE_APP_E2E: true VITE_APP_DEFAULT_NETWORK: Devnet NODE_OPTIONS: "--max_old_space_size=4096" runs-on: ubuntu-latest @@ -27,7 +27,7 @@ jobs: TURBO_API: "http://127.0.0.1:9080" TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: pallad - run: VITE_APP_MODE=$VITE_APP_MODE pnpm build:extension + run: VITE_APP_E2E=$VITE_APP_E2E VITE_APP_DEFAULT_NETWORK=$VITE_APP_DEFAULT_NETWORK pnpm build:extension - name: Install Chromium for Playwright working-directory: apps/extension run: pnpm test:e2e:install diff --git a/.github/workflows/extension-release-workflow.yml b/.github/workflows/extension-release-workflow.yml index a749e022..f99b7ae3 100644 --- a/.github/workflows/extension-release-workflow.yml +++ b/.github/workflows/extension-release-workflow.yml @@ -3,38 +3,38 @@ on: workflow_dispatch: inputs: version: - description: 'Release version ð·ïļ' + description: "Release version ð·ïļ" required: true - default: '0.0.1' + default: "0.0.1" tag_name: - description: 'Tag name for the release ð' + description: "Tag name for the release ð" required: true release_name: - description: 'Name of the release ð' + description: "Name of the release ð" required: true release_body: - description: 'Release notes body ð' + description: "Release notes body ð" required: true draft: - description: 'Mark release as draft? ð§' + description: "Mark release as draft? ð§" required: true type: boolean prerelease: - description: 'Mark as prerelease? ð' + description: "Mark as prerelease? ð" required: true type: boolean generate_release_notes: - description: 'Generate release notes automatically? ð' + description: "Generate release notes automatically? ð" required: true type: boolean jobs: build_and_release: - name: 'Build and Release ð ïļ' + name: "Build and Release ð ïļ" runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - + - name: Setup env ð uses: ./.github/actions/setup with: @@ -43,13 +43,12 @@ jobs: - name: Build extension ðïļ env: - VITE_APP_MODE: web VITE_APP_DEFAULT_NETWORK: Devnet NODE_OPTIONS: "--max_old_space_size=4096" - TURBO_API: 'http://127.0.0.1:9080' + TURBO_API: "http://127.0.0.1:9080" TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: pallad - run: VITE_APP_MODE=$VITE_APP_MODE pnpm build:extension + run: pnpm build:extension - name: Compress dist folder run: | @@ -72,4 +71,4 @@ jobs: draft: ${{ github.event.inputs.draft }} prerelease: ${{ github.event.inputs.prerelease }} files: pallad-chromium.zip - generate_release_notes: ${{ github.event.inputs.generate_release_notes }} \ No newline at end of file + generate_release_notes: ${{ github.event.inputs.generate_release_notes }} diff --git a/.github/workflows/packages-ui-ci.yml b/.github/workflows/packages-ui-ci.yml index e2b4e4f9..b3be48c2 100644 --- a/.github/workflows/packages-ui-ci.yml +++ b/.github/workflows/packages-ui-ci.yml @@ -20,7 +20,6 @@ jobs: pages: write id-token: write env: - VITE_APP_MODE: web VITE_APP_DEFAULT_NETWORK: Devnet steps: - uses: actions/checkout@v3 @@ -36,7 +35,7 @@ jobs: TURBO_API: "http://127.0.0.1:9080" TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: pallad - run: VITE_APP_MODE=$VITE_APP_MODE pnpm build:features + run: pnpm build:features - name: Build features stories run: pnpm story:features - name: Upload pages artifact diff --git a/apps/extension/.env.example b/apps/extension/.env.example deleted file mode 100644 index 7b46d0eb..00000000 --- a/apps/extension/.env.example +++ /dev/null @@ -1,6 +0,0 @@ -VITE_APP_MODE=web -VITE_APP_DEFAULT_NETWORK=Devnet - -VITE_APP_MINA_PROXY_MAINNET_URL=https://pallad.co/api/obscura/mainnet.json - -VITE_APP_MINA_PROXY_DEVNET_URL=https://pallad.co/api/obscura/devnet.json diff --git a/apps/extension/app.html b/apps/extension/app.html deleted file mode 100644 index 16f25181..00000000 --- a/apps/extension/app.html +++ /dev/null @@ -1,14 +0,0 @@ - - -
- - -