From 67ae91830dc13d4abdc531d4e471abb15e8c8bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20Rold=C3=A1n?= Date: Mon, 19 Aug 2024 16:47:56 +0200 Subject: [PATCH] New snapit --- .github/workflows/snapit.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/snapit.yml b/.github/workflows/snapit.yml index 6ab7830c2a..4902d57fc9 100644 --- a/.github/workflows/snapit.yml +++ b/.github/workflows/snapit.yml @@ -1,4 +1,4 @@ -name: github-context-test +name: snapit-v2 on: issue_comment: @@ -14,8 +14,17 @@ jobs: if: ${{ github.event.issue.pull_request && github.event.comment.body == '/snapit' }} runs-on: ubuntu-latest steps: - - name: Dump GitHub context + - name: Checkout current branch + uses: actions/checkout@v4 + + - name: Create snapshot version + uses: Shopify/snapit@0c0d2dd62c9b0c94b7d03e1f54e72f18548e7752 # pin to a specific commit + with: + global_install: 'true' + github_comment_included_packages: '@shopify/cli' + custom_message_suffix: "\n> After installing, validate the version by running just `shopify` in your terminal\n> If the versions don't match, you might have multiple global instances installed.\n> Use `which shopify` to find out which one you are running and uninstall it." + build_script: "pnpm nx run-many --target=bundle --all --skip-nx-cache --output-style=stream" env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: | - echo "$GITHUB_CONTEXT" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} +