Unexpected token

I want to make autodeploy themes from github.
I did it sort of like everything according to the instructions: Deploy Ghost Theme
But after I update the github, the following error comes out:

Run TryGhost/action-deploy-theme@v1.4.1
SyntaxError: /home/runner/work/newtheme/newtheme/package.json: Unexpected token } in JSON at position 615
    at JSON.parse (<anonymous>)
    at Object.Module._extensions..json (internal/modules/cjs/loader.js:1009:27)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at main (/home/runner/work/_actions/TryGhost/action-deploy-theme/v1.4.1/dist/index.js:1560:62)
    at Object.104 (/home/runner/work/_actions/TryGhost/action-deploy-theme/v1.4.1/dist/index.js:1578:2)
    at __webpack_require__ (/home/runner/work/_actions/TryGhost/action-deploy-theme/v1.4.1/dist/index.js:24:31)
    at startup (/home/runner/work/_actions/TryGhost/action-deploy-theme/v1.4.1/dist/index.js:43:19)

In the deploy-theme.yml file:

name: Deploy Theme
on:
  push:
    branches:
      - master
      - main
jobs:
  deploy:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - name: Deploy Ghost Theme
        uses: TryGhost/action-deploy-theme@v1.4.1
        with:
          api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
          api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}

Ghost version: 4.9.3
Help me please. Thanks!

There were errors with the theme when checked through https://gscan.ghost.org/

After that I decided to take the standard casper.
Now another error appeared:

Run TryGhost/action-deploy-theme@v1.4.1
/usr/bin/zip -r casper.zip . -x *.git* *.zip yarn* npm* node_modules* *routes.yaml *redirects.yaml *redirects.json
  adding: index.hbs (stored 0%)
  adding: LICENSE (deflated 41%)
  adding: README.md (deflated 50%)
  adding: error-404.hbs (deflated 51%)
  adding: post.hbs (deflated 65%)
  adding: tag.hbs (deflated 69%)
  adding: package.json (deflated 65%)
  adding: author.hbs (deflated 70%)
  adding: assets/ (stored 0%)
  adding: assets/screenshot-desktop.jpg (deflated 28%)
  adding: assets/css/ (stored 0%)
  adding: assets/css/csscomb.json (deflated 78%)
  adding: assets/css/global.css (deflated 68%)
  adding: assets/css/screen.css (deflated 79%)
  adding: assets/js/ (stored 0%)
  adding: assets/js/infinite-scroll.js (deflated 67%)
  adding: assets/js/lib/ (stored 0%)
  adding: assets/js/lib/jquery.fitvids.js (deflated 60%)
  adding: assets/js/gallery-card.js (deflated 52%)
  adding: assets/screenshot-mobile.jpg (deflated 12%)
  adding: assets/built/ (stored 0%)
  adding: assets/built/casper.js (deflated 59%)
  adding: assets/built/global.css.map (deflated 70%)
  adding: assets/built/global.css (deflated 60%)
  adding: assets/built/casper.js.map (deflated 65%)
  adding: assets/built/screen.css (deflated 76%)
  adding: assets/built/screen.css.map (deflated 79%)
  adding: error.hbs (deflated 65%)
  adding: default.hbs (deflated 62%)
  adding: page.hbs (deflated 61%)
  adding: gulpfile.js (deflated 67%)
  adding: partials/ (stored 0%)
  adding: partials/post-card.hbs (deflated 67%)
  adding: partials/icons/ (stored 0%)
  adding: partials/icons/avatar.hbs (deflated 30%)
  adding: partials/icons/facebook.hbs (deflated 34%)
  adding: partials/icons/rss.hbs (deflated 31%)
  adding: partials/icons/twitter.hbs (deflated 54%)
  adding: partials/icons/loader.hbs (deflated 47%)
Error: unable to verify the first certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1321:34)
    at TLSSocket.emit (events.js:210:5)
    at TLSSocket._finishInit (_tls_wrap.js:794:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:608:12) {
  code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
  isAxiosError: true,
  toJSON: [Function]
}

I don’t know what the certificate is. But I use SSL certificate from ZeroSSL

This is telling you that you have a syntax problem with the package.json file in your theme and roughly where it is. If you’re having trouble seeing the problem and you don’t have your editor set up to highlight syntax errors for you then you could try pasting your package.json contents into something like https://jsonlint.com.

The problem has been resolved. You can close the topic.

At first there was a problem with the settings in packege.json, then there was a problem with the SSL certificate from ZeroSSL. I changed the certificate to Let’s Encrypt and everything was fine.
Thank you!

P.s.
Who doesn’t support SSL?
Github or Ghost?