From c8787072f8cba823349a1d5a8b8aa098ccd4b9bf Mon Sep 17 00:00:00 2001 From: scottrippey Date: Thu, 14 Sep 2023 08:45:35 -0600 Subject: [PATCH] chore: removed outdated references to Sanity's deployment, since it's now a part of our Next deployment (see #196) --- .github/workflows/deploySanity.yml | 40 ------------------------------ package.json | 3 +-- setup.md | 8 ++---- 3 files changed, 3 insertions(+), 48 deletions(-) delete mode 100644 .github/workflows/deploySanity.yml diff --git a/.github/workflows/deploySanity.yml b/.github/workflows/deploySanity.yml deleted file mode 100644 index 0098f110..00000000 --- a/.github/workflows/deploySanity.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Sanity Studio Deploy - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Setup Node.js environment - uses: actions/setup-node@v3 - with: - node-version: 16.x - - - uses: pnpm/action-setup@v2.2.2 - with: - version: 7 - - - name: Get pnpm store directory - id: pnpm-cache - run: echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" - - - name: Setup pnpm cache - uses: actions/cache@v3 - with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - name: Install dependencies - run: pnpm install - - - name: Deploy Sanity - run: | - SANITY_AUTH_TOKEN="${{ secrets.SANITY_DEPLOY_TOKEN }}" pnpm run deploy-sanity-studio diff --git a/package.json b/package.json index ebd7437c..6ade2e38 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "next-sanity-fastly-ecomm-demo", + "name": "nextjs-sanity-fe", "version": "0.0.1", "description": "A demo ecommerce site using Next.js, Sanity CMS, and Fastly.", "keywords": [], @@ -7,7 +7,6 @@ "main": "index.js", "license": "MIT", "scripts": { - "local": "pnpm run --filter ./packages/nextjs --filter ./packages/sanity --parallel dev", "dev:nextjs": "pnpm run --filter ./packages/nextjs dev", "next:dev": "pnpm run --filter ./packages/nextjs next:dev", "next:dev:mock": "pnpm run --filter ./packages/nextjs next:dev:mock", diff --git a/setup.md b/setup.md index 81ad393a..7134593b 100644 --- a/setup.md +++ b/setup.md @@ -113,10 +113,6 @@ There is an `./packages/nextjs/.env.sample` committed to the repo which contains :bulb: To get a list of scripts available, you can run `pnpm run` and it will output a list of available commands. -- `local` - Runs Sanity Studio, Next.js app -- `dev:nextjs` - Runs NextJs app +- `dev:nextjs` - Runs the NextJs app - `build:nextjs` - Builds NextJS app -- `start:nextjs` - Starts the built out NextJs app -- `dev:sanity` - Runs Sanity Studio locally -- `build:sanity` - Builds Sanity Studio -- `deploy-sanity-studio` - Deploys Sanity Studio to Sanity +- `start:nextjs` - Starts the built-out NextJs app