Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nzhang4 committed Nov 12, 2020
1 parent f782547 commit 1846f86
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,26 @@ jobs:
node-version: 12
- run: npm ci
- run: npm test

build-release:
test-action-locally:
needs: npm-test
runs-on: ubuntu-latest
name: dry run action test
steps:
- name: Checkout repo
uses: actions/checkout@v2
- run: npm ci
- name: Check xo formatter
run: npm run xo
- name: validate-json
uses: ./
id: validation
with:
file-extension: '.config,.json'
ignore-files: 'README.md'
ignore-directories: '.git'
read-path: 'sample_folder'
build-release:
needs: test-action-locally
name: release-build
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@anyone-developer/anyone-validate-json",
"version": "0.9.4",
"version": "0.9.5",
"description": "This action helps you to validate JSON syntax in a specified directory. And write back with formatted content. read file recursively with specified file extensions.",
"main": "index.ts",
"types": "index.d.ts",
Expand Down

0 comments on commit 1846f86

Please sign in to comment.