From 0ac9564bf72d4171d3a2d5b59b615ab4184a972e Mon Sep 17 00:00:00 2001 From: "nuxt-studio[bot]" <117276984+nuxt-studio[bot]@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:23:15 +0000 Subject: [PATCH] chore(deps): upgrade Nuxt Studio CI --- .github/workflows/studio.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/studio.yml b/.github/workflows/studio.yml index 4eeac6e..34548f9 100644 --- a/.github/workflows/studio.yml +++ b/.github/workflows/studio.yml @@ -5,7 +5,8 @@ run-name: studio nuxt build on: # Runs on pushes targeting the default branch push: - branches: ["main"] + branches: + - 'main' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -34,7 +35,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Identify package manager id: pkgman @@ -44,12 +45,12 @@ jobs: echo "cache=$cache" >> $GITHUB_OUTPUT echo "package_manager=$package_manager" >> $GITHUB_OUTPUT - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 if: ${{ steps.pkgman.outputs.package_manager == 'pnpm' }} name: Install pnpm id: pnpm-install with: - version: 7 + version: 8 - uses: actions/setup-node@v3 with: @@ -63,12 +64,13 @@ jobs: run: ${{ steps.pkgman.outputs.package_manager }} add -D @nuxthq/studio - name: Create .nuxtrc - run: echo 'modules[]=@nuxthq/studio' > .nuxtrc + run: echo '\nautoImport=true\nmodules[]=@nuxthq/studio' >> .nuxtrc - name: Generate - run: ${{ steps.pkgman.outputs.package_manager }} nuxi generate + run: npx nuxi generate env: NUXT_PUBLIC_STUDIO_API_URL: https://api.nuxt.studio + NUXT_PUBLIC_STUDIO_TOKENS: 2d973abe61202e5f9d9b2869d4a19f024f3c0472162adce3935b762e39fe82f4 - name: Add .nojekyll file run: touch .output/public/.nojekyll