Skip to content

PR number available? #5

PR number available?

PR number available? #5

Workflow file for this run

name: Deploy app
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install npm dependencies
run: npm install
- name: Deploy
env:
# Token from the Partner Dashboard
SHOPIFY_CLI_PARTNERS_TOKEN: ${{ secrets.SHOPIFY_CLI_PARTNERS_TOKEN }}
# .env content after a deploy
SHOPIFY_API_KEY: 3dab3303f5789587b2f870f9149d904c
COMMIT_URL: ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}xxx${{ github.event.pull_request.number }}
run: npm run deploy -- -f --source-control-url $COMMIT_URL