diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml new file mode 100644 index 0000000..d863551 --- /dev/null +++ b/.github/workflows/integrate.yml @@ -0,0 +1,16 @@ +# main only + +name: Integrate + +on: + push: + branches: [main] + +env: + FORCE_COLOR: 1 + +jobs: + _: + uses: medikoo/github-actions-workflows/.github/workflows/0.12-integrate.yml@main + secrets: + USER_GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..9c23c91 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +# Version tags only + +name: Publish + +on: + push: + tags: + - v[0-9]+.[0-9]+.[0-9]+ + +env: + FORCE_COLOR: 1 + +jobs: + _: + uses: medikoo/github-actions-workflows/.github/workflows/publish.yml@main + secrets: + USER_GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..20835cc --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,14 @@ +# PR's only + +name: Validate + +on: + pull_request: + branches: [main] + +env: + FORCE_COLOR: 1 + +jobs: + _: + uses: medikoo/github-actions-workflows/.github/workflows/0.12-validate.yml@main diff --git a/README.md b/README.md index b70ffa5..293acc7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ -[![*nix build status][nix-build-image]][nix-build-url] -[![Windows build status][win-build-image]][win-build-url] -![Transpilation status][transpilation-image] +[![Build status][build-image]][build-url] +[![Tests coverage][cov-image]][cov-url] [![npm version][npm-image]][npm-url] # Memoizee @@ -509,10 +508,9 @@ To report a security vulnerability, please use the [Tidelift security contact](h - [@puzrin](https://github.com/puzrin) (Vitaly Puzrin) - Proposal and help with coining right _pre-fetch_ logic for [_maxAge_](https://github.com/medikoo/memoize#expire-cache-after-given-period-of-time) variant -[nix-build-image]: https://semaphoreci.com/api/v1/medikoo-org/memoizee/branches/master/shields_badge.svg -[nix-build-url]: https://semaphoreci.com/medikoo-org/memoizee -[win-build-image]: https://ci.appveyor.com/api/projects/status/hsxubnbwe89c26bu?svg=true -[win-build-url]: https://ci.appveyor.com/project/medikoo/memoizee -[transpilation-image]: https://img.shields.io/badge/transpilation-free-brightgreen.svg +[build-image]: https://github.com/medikoo/memoizee/workflows/Integrate/badge.svg +[build-url]: https://github.com/medikoo/memoizee/actions?query=workflow%3AIntegrate +[cov-image]: https://img.shields.io/codecov/c/github/medikoo/memoizee.svg +[cov-url]: https://codecov.io/gh/medikoo/memoizee [npm-image]: https://img.shields.io/npm/v/memoizee.svg [npm-url]: https://www.npmjs.com/package/memoizee diff --git a/package.json b/package.json index 6e1b458..c510316 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "eslint": "^8.57.0", "eslint-config-medikoo": "^4.2.0", "git-list-updated": "^1.2.1", + "github-release-from-cc-changelog": "^2.3.0", "husky": "^4.3.8", "lint-staged": "^15.2.4", "nyc": "^15.1.0",