-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Refactor
- Loading branch information
Showing
33 changed files
with
11,858 additions
and
7,774 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ], | ||
"rules": { | ||
"@wordpress/no-unsafe-wp-apis": 0, | ||
"no-console": "off", | ||
"eqeqeq": "off", | ||
"jsx-a11y/label-has-associated-control": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,35 +12,52 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Check if secrets exist | ||
env: | ||
svn_username: ${{ secrets.SVN_USERNAME }} | ||
svn_password: ${{ secrets.SVN_PASSWORD }} | ||
if: ${{ (env.svn_username == '') || (env.svn_password == '') }} | ||
run: exit 1 | ||
|
||
- name: Install npm packages | ||
run: | | ||
npm i | ||
- name: Build | ||
run: | | ||
npm run build | ||
- name: Semantic release | ||
id: semantic | ||
uses: codfish/semantic-release-action@master | ||
uses: cycjimmy/semantic-release-action@v2 | ||
with: | ||
semantic_version: 17 | ||
branches: | | ||
['master'] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set env | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
|
||
- name: Build release | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
shell: bash | ||
run: | | ||
npm run plugin-zip | ||
- name: Release | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ steps.semantic.outputs.new_release_version }} | ||
files: | | ||
dist/simple-tabs-block.zip | ||
- name: WordPress Plugin Deploy | ||
id: deploy | ||
if: steps.semantic.outputs.new-release-published == 'true' | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
uses: 10up/[email protected] | ||
with: | ||
generate-zip: true | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
SLUG: simple-tabs-block | ||
VERSION: ${{ steps.semantic.outputs.release-version }} | ||
- name: Upload release asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ${{ steps.deploy.outputs.zip-path }} | ||
asset_name: ${{ github.event.repository.name }}.zip | ||
asset_content_type: application/zip | ||
VERSION: ${{ steps.semantic.outputs.new_release_version }} | ||
BUILD_DIR: dist/simple-tabs-block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,21 @@ | ||
module.exports = { | ||
tagFormat: "${version}", | ||
branch: "master", | ||
branches: ["master"], | ||
plugins: [ | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"changelogFile": "changelog.txt" | ||
} | ||
], | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": ["changelog.txt"] | ||
} | ||
], | ||
["@semantic-release/npm", { npmPublish: false }], | ||
"@semantic-release/github", | ||
[ | ||
"semantic-release-plugin-update-version-in-files", | ||
{ | ||
"files": [ | ||
"package.json", | ||
"simple-tabs-block.php", | ||
"readme.txt", | ||
"build/tab/block.json", | ||
"build/tabs/block.json" | ||
"src/tabs/block.json", | ||
"src/tab/block.json" | ||
], | ||
"placeholder": "0.0.0-development" | ||
} | ||
] | ||
] | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"editor.formatOnSave": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true | ||
}, | ||
"eslint.validate": [ | ||
"javascript", | ||
"typescript" | ||
], | ||
"typescript.validate.enable": true, | ||
"typescript.tsserver.experimental.enableProjectDiagnostics": true, | ||
"stylelint.enable": true, | ||
"stylelint.validate": [ | ||
"scss" | ||
], | ||
"css.validate": false, | ||
"less.validate": false, | ||
"scss.validate": false, | ||
"stylelint.configFile": "node_modules/@wordpress/scripts/config/.stylelintrc.json" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.