File tree Expand file tree Collapse file tree 2 files changed +35
-15
lines changed
Expand file tree Collapse file tree 2 files changed +35
-15
lines changed Original file line number Diff line number Diff line change 1+ name : Snapit Remote UI
2+ on :
3+ issue_comment :
4+ types :
5+ - created
6+
7+ jobs :
8+ snapit :
9+ name : Snapit Remote UI
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ with :
14+ token : ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
15+
16+ - uses : actions/setup-node@v4
17+ name : Setup node.js and yarn
18+ with :
19+ cache : yarn
20+ node-version-file : ' .nvmrc'
21+
22+ - name : Yarn install
23+ run : yarn install --frozen-lockfile
24+ shell : bash
25+
26+ - name : Create snapshot
27+ uses : Shopify/snapit@main
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
30+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
31+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
32+ with :
33+ build_script : yarn type-check && yarn build
34+ comment_command : /snapit-remote-ui
Original file line number Diff line number Diff line change @@ -16,26 +16,12 @@ jobs:
1616
1717 - uses : ./.github/workflows/actions/prepare
1818
19- - name : Detect package manager
20- id : detect-package-manager
21- run : |
22- if [ -f "pnpm-lock.yaml" ]; then
23- echo "manager=pnpm" >> $GITHUB_OUTPUT
24- echo "build=pnpm build:snapit" >> $GITHUB_OUTPUT
25- elif [ -f "yarn.lock" ]; then
26- echo "manager=yarn" >> $GITHUB_OUTPUT
27- echo "build=yarn build:snapit" >> $GITHUB_OUTPUT
28- else
29- echo "No supported package manager lock file found"
30- exit 1
31- fi
32-
3319 - name : Create snapshot
3420 uses : Shopify/snapit@main
3521 env :
3622 GITHUB_TOKEN : ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
3723 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
3824 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
3925 with :
40- build_script : ${{ steps.detect-package-manager.outputs. build }}
26+ build_script : pnpm build:snapit
4127 comment_command : /snapit
You can’t perform that action at this time.
0 commit comments