Skip to content

Commit 31bccc6

Browse files
authored
Merge pull request #551 from Shopify/revert-550-app-ui/issues/2098/rpc-snapit
Revert "Add snapit for remote-ui"
2 parents 6b85728 + 475b7f3 commit 31bccc6

File tree

2 files changed

+35
-15
lines changed

2 files changed

+35
-15
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

.github/workflows/snapit.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)