PR number available? #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |