diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 6b21cdea..50cb7cc4 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -8,7 +8,7 @@ on: types: [created] jobs: - build: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -17,11 +17,10 @@ jobs: node-version: 12 - run: npm ci - run: npm run lint - - run: npm run build - run: npm run test - publish-npm: - needs: build + build-and-publish: + needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -29,6 +28,8 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm run build - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/package.json b/package.json index f63a034c..5841d4e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mieweb/wikigdrive", - "version": "1.0.2", + "version": "1.0.3", "description": "Google Drive to MarkDown synchronization", "keywords": [ "GDrive", @@ -27,8 +27,7 @@ "name": "Medical Informatics Engineering", "url": "https://www.mieweb.com/" }, - "contributors": [ - { + "contributors": [{ "name": "Doug Horner", "email": "horner@mieweb.com", "url": "https://github.com/horner"