Closed sebastienserre closed 4 years ago
Same here. I have created a package.json
file with the following contents:
{
"name": "wp-perfect-plugin",
"version": "1.3.7.3",
"description": "WP Perfect Plugin aims to provide advanced options for any web developer. WP Perfect Plugin has options for search engines, such as ownership verification, local business JSON-LD data, Open Graph, analytics, header and footer easy code insertion and optimised SEO defaults."
}
I have also creating an empy package-lock.json
file.
Now I'm only getting:
npm ERR! Invalid version: "1.3.7.3"
UPDATE:
I changed the version to major.minor.feature (i.e. 1.3.8
in my case) and it worked. Now I'm only getting one error:
npm ERR! missing script: build
@sebastienserre @wolffe These are npm
errors which tell me that you’re not using a build process, so you will want to remove the following lines from the workflow file, no need for a skeleton package.json
if you’re not doing anything with it.
- name: Build
run: |
npm install
npm run build
Thanks @helen
I have actually added a build keyword in my package.json
file and it worked. The next error, though is in the deploying part:
svn: E155005: No write-lock in '/github/svn-wp-perfect-plugin/trunk'
no more error on my part, many thanks @helen
Another one from me:
svn: E155023: Cannot copy to '/github/svn-wp-perfect-plugin/tags/1.3.10', as it is not from repository 'https://plugins.svn.wordpress.org'; it is from 'http://plugins.svn.wordpress.org'
UPDATE:
It worked. I had an old (and hidden) .svn
directory inside my plugin. I deleted it and it worked like magic.
Thanks @helen and thanks @10up!
@sebastienserre @wolffe sounds like you're both all set, glad to here Helen was able to help get things settled for you. Let us know if you run into any further issues or have ideas on how to improve our GitHub Actions... thanks!
Hello,
I try your action to test the deployment without SVN and got an error: