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)
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!