From dcbc2f114584cf49b4c98ab878ecc17b8a4c5d53 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Sat, 3 Dec 2022 00:51:49 +0530 Subject: [PATCH] ci: use latest workflow versions --- .devcontainer/devcontainer.json | 12 ++++++------ .github/workflows/deploy-netlify.yml | 2 +- .github/workflows/deploy-preview-netlify.yml | 2 +- .github/workflows/deploy-staging-netlify.yml | 2 +- .github/workflows/tests.yml | 2 +- README.md | 4 ++-- packages/hoppscotch-common/src/components.d.ts | 12 ++++++++++++ 7 files changed, 24 insertions(+), 12 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5f21def62..451f32691 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,9 +1,9 @@ { - "name": "Hoppscotch", - "image": "mcr.microsoft.com/devcontainers/typescript-node:18", + "name": "Hoppscotch", + "image": "mcr.microsoft.com/devcontainers/typescript-node:18", "forwardPorts": [3000], - "features": { - "ghcr.io/NicoVIII/devcontainer-features/pnpm:1": {} - }, - "postCreateCommand": "cp .env.example .env && pnpm i" + "features": { + "ghcr.io/NicoVIII/devcontainer-features/pnpm:1": {} + }, + "postCreateCommand": "mv .env.example .env && pnpm i" } diff --git a/.github/workflows/deploy-netlify.yml b/.github/workflows/deploy-netlify.yml index 3e0a0bb2a..9a8b70648 100644 --- a/.github/workflows/deploy-netlify.yml +++ b/.github/workflows/deploy-netlify.yml @@ -16,7 +16,7 @@ jobs: run: mv .env.example .env - name: Setup and run pnpm install - uses: pnpm/action-setup@v2.2.2 + uses: pnpm/action-setup@v2.2.4 with: version: 7 run_install: true diff --git a/.github/workflows/deploy-preview-netlify.yml b/.github/workflows/deploy-preview-netlify.yml index cee82d7c0..6be28db1f 100644 --- a/.github/workflows/deploy-preview-netlify.yml +++ b/.github/workflows/deploy-preview-netlify.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v3 - name: Setup and run pnpm install - uses: pnpm/action-setup@v2.2.2 + uses: pnpm/action-setup@v2.2.4 env: VITE_BACKEND_GQL_URL: ${{ secrets.STAGING_BACKEND_GQL_URL }} with: diff --git a/.github/workflows/deploy-staging-netlify.yml b/.github/workflows/deploy-staging-netlify.yml index a7c4c26dd..0e1d875ae 100644 --- a/.github/workflows/deploy-staging-netlify.yml +++ b/.github/workflows/deploy-staging-netlify.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v3 - name: Setup and run pnpm install - uses: pnpm/action-setup@v2.2.2 + uses: pnpm/action-setup@v2.2.4 env: VITE_BACKEND_GQL_URL: ${{ secrets.STAGING_BACKEND_GQL_URL }} with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 41ff119d5..4a09c24e3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: run: mv .env.example .env - name: Setup and run pnpm install - uses: pnpm/action-setup@v2.2.2 + uses: pnpm/action-setup@v2.2.4 with: version: 7 run_install: true diff --git a/README.md b/README.md index 3b8958c94..ea412aa6b 100644 --- a/README.md +++ b/README.md @@ -279,7 +279,7 @@ _Add-ons are developed and maintained under **[Hoppscotch Organization](https:// ## **Developing** -0. Update [`.env.example`](https://github.com/hoppscotch/hoppscotch/blob/main/.env.example) file found in the root of the repo with your own keys and rename it to `.env`. +0. Update [`.env.example`](https://github.com/hoppscotch/hoppscotch/blob/main/.env.example) file found in the root of repository with your own keys and rename it to `.env`. _Sample keys only work with the [production build](https://hoppscotch.io)._ @@ -315,7 +315,7 @@ docker run --rm --name hoppscotch -p 3000:3000 hoppscotch/hoppscotch:latest 1. [Clone this repo](https://help.github.com/en/articles/cloning-a-repository) with git. 2. Install pnpm using npm by running `npm install -g pnpm`. 3. Install dependencies by running `pnpm install` within the directory that you cloned (probably `hoppscotch`). -4. Update [`.env.example`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/.env.example) file found in `packages/hoppscotch-app` with your own keys and rename it to `.env`. +4. Update [`.env.example`](https://github.com/hoppscotch/hoppscotch/blob/main/.env.example) file found in the root of repository with your own keys and rename it to `.env`. 5. Build the release files with `pnpm run generate`. 6. Find the built project in `packages/hoppscotch-app/dist`. Host these files on any [static hosting servers](https://www.pluralsight.com/blog/software-development/where-to-host-your-jamstack-site). diff --git a/packages/hoppscotch-common/src/components.d.ts b/packages/hoppscotch-common/src/components.d.ts index 3ebc21203..40f5e9aa4 100644 --- a/packages/hoppscotch-common/src/components.d.ts +++ b/packages/hoppscotch-common/src/components.d.ts @@ -98,6 +98,18 @@ declare module '@vue/runtime-core' { HttpTestResultReport: typeof import('./components/http/TestResultReport.vue')['default'] HttpTests: typeof import('./components/http/Tests.vue')['default'] HttpURLEncodedParams: typeof import('./components/http/URLEncodedParams.vue')['default'] + IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default'] + IconLucideCheckCircle: typeof import('~icons/lucide/check-circle')['default'] + IconLucideChevronRight: typeof import('~icons/lucide/chevron-right')['default'] + IconLucideGlobe: typeof import('~icons/lucide/globe')['default'] + IconLucideInbox: typeof import('~icons/lucide/inbox')['default'] + IconLucideInfo: typeof import('~icons/lucide/info')['default'] + IconLucideLayers: typeof import('~icons/lucide/layers')['default'] + IconLucideLoader: typeof import('~icons/lucide/loader')['default'] + IconLucideMinus: typeof import('~icons/lucide/minus')['default'] + IconLucideSearch: typeof import('~icons/lucide/search')['default'] + IconLucideUser: typeof import('~icons/lucide/user')['default'] + IconLucideUsers: typeof import('~icons/lucide/users')['default'] LensesHeadersRenderer: typeof import('./components/lenses/HeadersRenderer.vue')['default'] LensesHeadersRendererEntry: typeof import('./components/lenses/HeadersRendererEntry.vue')['default'] LensesRenderersHTMLLensRenderer: typeof import('./components/lenses/renderers/HTMLLensRenderer.vue')['default']