diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 73d4cc2..82a2be8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,8 +1,9 @@ name: npm-publish + on: - push: - tags: - - '*' + release: + types: [created] + jobs: npm-publish: name: Publish packages to NPM diff --git a/.github/workflows/test-application.yml b/.github/workflows/test-application.yml new file mode 100644 index 0000000..4445aea --- /dev/null +++ b/.github/workflows/test-application.yml @@ -0,0 +1,24 @@ +name: Test Application + +on: + push: + branches: + - master + pull_request: + types: [opened, reopened, synchronize] + +jobs: + test: + name: Test Application + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Use Node 14 + uses: actions/setup-node@v2.1.2 + with: + node-version: 14 + - name: Install dependencies with yarn + run: yarn install --frozen-lockfile + - name: Run test command + run: yarn test diff --git a/CHANGELOG.md b/CHANGELOG.md index 963218d..29f7ef3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.12](https://github.com/john-d-pelingo/jdp-scripts/compare/v0.0.11...v0.0.12) (2020-12-04) + + +### Features + +* add workflow to test app ([2ff8e46](https://github.com/john-d-pelingo/jdp-scripts/commit/2ff8e46622383237b099746ac2c23060ba5d03b7)) +* do not export index ([a0473fa](https://github.com/john-d-pelingo/jdp-scripts/commit/a0473fa3a83e14727c3e61d351d6e6925b04dc9f)) +* publish only on release ([24db249](https://github.com/john-d-pelingo/jdp-scripts/commit/24db2493d4869a8bb3fec8082561c749d02cd973)) + ### [0.0.11](https://github.com/john-d-pelingo/jdp-scripts/compare/v0.0.10...v0.0.11) (2020-12-02) diff --git a/package.json b/package.json index 5aef32f..5db3fb5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.0.11", + "version": "0.0.12", "workspaces": [ "packages/*" ], @@ -16,9 +16,13 @@ "node": ">=14" }, "prettier": "./packages/prettier-config", + "standard-version": { + "scripts": { + "prerelease": "yarn test" + } + }, "scripts": { "format": "prettier --write './**/*.{js,ts,json,yml,yaml,css,html}'", - "prerelease": "npm run test", "release": "standard-version", "test": "yarn workspaces run test" }, diff --git a/packages/commitlint-config/package.json b/packages/commitlint-config/package.json index 7c2b11d..aec5bad 100644 --- a/packages/commitlint-config/package.json +++ b/packages/commitlint-config/package.json @@ -1,6 +1,6 @@ { "name": "@jdp-dev/commitlint-config", - "version": "0.0.11", + "version": "0.0.12", "description": "My shareable commitlint config.", "private": false, "homepage": "https://github.com/john-d-pelingo/jdp-scripts", diff --git a/packages/eslint-config-typescript-react/package.json b/packages/eslint-config-typescript-react/package.json index 0126ebe..fbd0723 100644 --- a/packages/eslint-config-typescript-react/package.json +++ b/packages/eslint-config-typescript-react/package.json @@ -1,6 +1,6 @@ { "name": "@jdp-dev/eslint-config-typescript-react", - "version": "0.0.11", + "version": "0.0.12", "description": "My shareable ESLint config for TypeScript React projects.", "private": false, "homepage": "https://github.com/john-d-pelingo/jdp-scripts", diff --git a/packages/eslint-config-typescript/package.json b/packages/eslint-config-typescript/package.json index 5b7e2f7..768c179 100644 --- a/packages/eslint-config-typescript/package.json +++ b/packages/eslint-config-typescript/package.json @@ -1,6 +1,6 @@ { "name": "@jdp-dev/eslint-config-typescript", - "version": "0.0.11", + "version": "0.0.12", "description": "My shareable ESLint config for TypeScript projects.", "private": false, "homepage": "https://github.com/john-d-pelingo/jdp-scripts", diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 3e56d10..319e233 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@jdp-dev/eslint-config", - "version": "0.0.11", + "version": "0.0.12", "description": "My shareable ESLint config for JavaScript projects.", "private": false, "homepage": "https://github.com/john-d-pelingo/jdp-scripts", diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index 5111166..66b0882 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -1,6 +1,6 @@ { "name": "@jdp-dev/prettier-config", - "version": "0.0.11", + "version": "0.0.12", "description": "My shareable Prettier config.", "private": false, "homepage": "https://github.com/john-d-pelingo/jdp-scripts", diff --git a/packages/tsconfig/__tests__/index.js b/packages/tsconfig/__tests__/index.js index 66128d7..58ed476 100644 --- a/packages/tsconfig/__tests__/index.js +++ b/packages/tsconfig/__tests__/index.js @@ -1,7 +1,6 @@ const test = require('tape') test('config files parse', (t) => { - t.doesNotThrow(() => require('..'), 'index does not throw') t.doesNotThrow( () => require('../tsconfig.base.json'), 'tsconfig.base.json does not throw', diff --git a/packages/tsconfig/index.js b/packages/tsconfig/index.js deleted file mode 100644 index a0af8b4..0000000 --- a/packages/tsconfig/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./tsconfig.base.json') diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index 3cc9f20..f7a8f5f 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -1,6 +1,6 @@ { "name": "@jdp-dev/tsconfig", - "version": "0.0.11", + "version": "0.0.12", "description": "My shareable TypeScript config.", "private": false, "homepage": "https://github.com/john-d-pelingo/jdp-scripts", @@ -22,7 +22,6 @@ "typescript", "tsconfig" ], - "main": "index.js", "scripts": { "prepublishOnly": "npm run test", "test": "tape __tests__/*.js"