Skip to content

devenes/shopify-cli-action

 
 

Repository files navigation

Shopify CLI Action

This repository contains a GitHub Action to use the Shopify CLI from CI pipelines.

Usage

Add a new step to your GitHub Actions workflow that uses shopify/shopify-cli-action.

name: My project

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.7.5
      - uses: shopify/shopify-cli-action@v1
        with:
          path: 'scripts/my_script'
          auth-token: ${{ secrets.SHOPIFY_CLI_AUTH_TOKEN }}
          command: 'script push'

Note: It's important that Ruby is installed through the ruby/setup-ruby action to prevent permission-related issues using the system Ruby.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%