I am running the following in github actions but I get an error.
name: Push app extension code
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: shopify/shopify-cli-action@v1
with:
path: 'extensions/my_extension'
auth-token: '${{ secrets.SHOPIFY_CLI_AUTH_TOKEN }}'
command: 'push --extension-id=${{ secrets.SHOPIFY_EXTENSION_ID }} --api-key=${{ secrets.SHOPIFY_API_KEY }} --api-secret=${{ secrets.SHOPIFY_API_SECRET }} --force'
error
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
Error: Command failed: gem install shopify-cli
Is there a solution?