From 1846f868a3f2d840d1c0d4929e5d49896f707f35 Mon Sep 17 00:00:00 2001 From: nzhang4 Date: Thu, 12 Nov 2020 18:04:45 +0800 Subject: [PATCH] update workflow --- .github/workflows/release-build.yml | 21 +++++++++++++++++++-- package.json | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 5a3632b..5c81357 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -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: diff --git a/package.json b/package.json index 1e604c0..4811403 100644 --- a/package.json +++ b/package.json @@ -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",