im trying out autoposting from github to devto as per devto autoposting and its fantastic IF you format your dev-to-git.json
correctly
my devto pages github repo is at
my devto autoposted pages are at
- https://dev.to/osde8info/devto-auto-post-test-post-a-2d93
- https://dev.to/osde8info/devto-auto-post-test-post-b-23j
- https://dev.to/osde8info/devto-auto-post-test-56j4
- https://dev.to/osde8info/devto-auto-post-test4-jj7
- https://dev.to/osde8info/devto-auto-post-test5-1kg5
test locally by running embed and pretty locally before you PUSH to github
$ yarn embed
$ yarn prettier
see if you are getting yarn prettier errors "EXIT 1" is BAD
LOCAL ERORRS
$ yarn prettier:check
yarn run v1.21.1
warning package.json: No license field
$ yarn run prettier "**/*.{js,json,scss,md,ts,html,component.html}" --list-different
warning package.json: No license field
$ prettier '**/*.{js,json,scss,md,ts,html,component.html}' --list-different
dev-to-git.json
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
TRAVIS ERORRS
$ yarn run v1.3.2
(node:6183) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning package.json: No license field
$ yarn run prettier:base --list-different
$ yarn run prettier "**/*.{js,json,scss,md,ts,html,component.html}" --list-different
warning package.json: No license field
$ prettier '**/*.{js,json,scss,md,ts,html,component.html}' --list-different
dev-to-git.json
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
Top comments (7)
Hi Clive, can you please update all the dependencies?
Also please check this thread where I've explained a bit further how to fix this github.com/maelingmurphy/my-dev.to...
have a look at my repo ive already updated deps BUT still getting errors
have you checked those issues:
github.com/maxime1992/dev.to/issues/6
github.com/maxime1992/dev.to/issues/7
So try running
yarn run prettier:write
basically :)From your travis build:
So yeah you just need to run prettier your formatting is not correct that's it.
Just run
yarn run prettier:write
:)FIXED thanks github.com/maelingmurphy/my-dev.to...
now getting "Response code 422 (Unprocessable Entity)" see full error report at github.com/maelingmurphy/my-dev.to...
I commented out the prettier command, worked somewhat