diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
new file mode 100644
index 0000000..ba29318
--- /dev/null
+++ b/.github/workflows/validate.yml
@@ -0,0 +1,66 @@
+name: validate
+on: [push, pull_request]
+jobs:
+ main:
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest]
+ node: [10.14, 10, 12, 14, 15]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - name: ⬇️ Checkout repo
+ uses: actions/checkout@v2
+
+ - name: ⎔ Setup node
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node }}
+
+ - name: 📥 Download deps
+ uses: bahmutov/npm-install@v1
+ with:
+ useLockFile: false
+
+ - name: ▶️ Run validate script
+ run: npm run validate
+
+ - name: ⬆️ Upload coverage report
+ uses: codecov/codecov-action@v1
+
+ release:
+ needs: main
+ runs-on: ubuntu-latest
+ if:
+ ${{ github.repository == 'kentcdodds/cross-env' &&
+ contains('refs/heads/master,refs/heads/beta,refs/heads/next,refs/heads/alpha',
+ github.ref) && github.event_name == 'push' }}
+ steps:
+ - name: ⬇️ Checkout repo
+ uses: actions/checkout@v2
+
+ - name: ⎔ Setup node
+ uses: actions/setup-node@v1
+ with:
+ node-version: 14
+
+ - name: 📥 Download deps
+ uses: bahmutov/npm-install@v1
+ with:
+ useLockFile: false
+
+ - name: 🚀 Release
+ uses: cycjimmy/semantic-release-action@v2
+ with:
+ semantic_version: 17
+ branches: |
+ [
+ '+([0-9])?(.{+([0-9]),x}).x',
+ 'master',
+ 'next',
+ 'next-major',
+ {name: 'beta', prerelease: true},
+ {name: 'alpha', prerelease: true}
+ ]
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 5d1848a..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-language: node_js
-cache: npm
-notifications:
- email: false
-node_js:
- - 10.14
- - 12
- - 14
- - node
-install: npm install
-script:
- - npm run validate
- - npx codecov@3
-branches:
- only:
- - master
- - next
-
-jobs:
- include:
- - stage: release
- node_js: 14
- script: kcd-scripts travis-release
- if: fork = false
diff --git a/README.md b/README.md
index c3d04f6..732f1f7 100755
--- a/README.md
+++ b/README.md
@@ -1,20 +1,21 @@
cross-env 🔀
-Run scripts that set and use environment variables across platforms
-
+
Run scripts that set and use environment variables across platforms
-
+---
-[![Travis Build Status][build-badge]][build]
-[![AppVeyor Build Status][win-build-badge]][win-build]
+
+[![Build Status][build-badge]][build]
[![Code Coverage][coverage-badge]][coverage]
-[![version][version-badge]][package] [![MIT License][license-badge]][license]
-
-[![All Contributors](https://img.shields.io/badge/all_contributors-20-orange.svg?style=flat-square)](#contributors)
-[![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc]
+[![version][version-badge]][package]
[![downloads][downloads-badge]][npmtrends]
+[![MIT License][license-badge]][license]
+[![All Contributors][all-contributors-badge]](#contributors-)
+[![PRs Welcome][prs-badge]][prs]
+[![Code of Conduct][coc-badge]][coc]
+
## The problem
@@ -180,7 +181,25 @@ easier for Windows users.
- [`@naholyr/cross-env`](https://www.npmjs.com/package/@naholyr/cross-env) -
`cross-env` with support for setting default values
-## Contributors
+## Issues
+
+_Looking to contribute? Look for the [Good First Issue][good-first-issue]
+label._
+
+### 🐛 Bugs
+
+Please file an issue for bugs, missing documentation, or unexpected behavior.
+
+[**See Bugs**][bugs]
+
+### 💡 Feature Requests
+
+Please file an issue to suggest new features. Vote on feature requests by adding
+a 👍. This helps maintainers prioritize what to work on.
+
+[**See Feature Requests**][requests]
+
+## Contributors ✨
Thanks goes to these people ([emoji key][emojis]):
@@ -236,35 +255,33 @@ Contributions of any kind welcome!
MIT
-[npm]: https://www.npmjs.com/
+
+[npm]: https://npmjs.com
[node]: https://nodejs.org
-[build-badge]:
- https://img.shields.io/travis/kentcdodds/cross-env.svg?style=flat-square
-[build]: https://travis-ci.org/kentcdodds/cross-env
-[win-build-badge]:
- https://img.shields.io/appveyor/ci/kentcdodds/cross-env.svg?style=flat-square
-[win-build]: https://ci.appveyor.com/project/kentcdodds/cross-env
-[coverage-badge]:
- https://img.shields.io/codecov/c/github/kentcdodds/cross-env.svg?style=flat-square
+[build-badge]: https://img.shields.io/github/workflow/status/kentcdodds/cross-env/validate?logo=github&style=flat-square
+[build]: https://github.com/kentcdodds/cross-env/actions?query=workflow%3Avalidate
+[coverage-badge]: https://img.shields.io/codecov/c/github/kentcdodds/cross-env.svg?style=flat-square
[coverage]: https://codecov.io/github/kentcdodds/cross-env
-[version-badge]: https://img.shields.io/npm/v/cross-env.svg?style=flat-square
-[package]: https://www.npmjs.com/package/cross-env
-[downloads-badge]: https://img.shields.io/npm/dm/cross-env.svg?style=flat-square
-[npmtrends]: https://www.npmtrends.com/cross-env
-[license-badge]: https://img.shields.io/npm/l/cross-env.svg?style=flat-square
-[license]: https://github.com/kentcdodds/cross-env/blob/master/other/LICENSE
-[prs-badge]:
- https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
+[version-badge]: https://img.shields.io/npm/v/gatsby-remark-embedder.svg?style=flat-square
+[package]: https://www.npmjs.com/package/gatsby-remark-embedder
+[downloads-badge]: https://img.shields.io/npm/dm/gatsby-remark-embedder.svg?style=flat-square
+[npmtrends]: http://www.npmtrends.com/gatsby-remark-embedder
+[license-badge]: https://img.shields.io/npm/l/gatsby-remark-embedder.svg?style=flat-square
+[license]: https://github.com/kentcdodds/cross-env/blob/master/LICENSE
+[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[prs]: http://makeapullrequest.com
-[coc-badge]:
- https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
-[coc]:
- https://github.com/kentcdodds/cross-env/blob/master/other/CODE_OF_CONDUCT.md
-[emojis]: https://github.com/kentcdodds/all-contributors#emoji-key
-[all-contributors]: https://github.com/kentcdodds/all-contributors
-[win-bash]: https://msdn.microsoft.com/en-us/commandline/wsl/about
+[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
+[coc]: https://github.com/kentcdodds/cross-env/blob/master/other/CODE_OF_CONDUCT.md
+[emojis]: https://allcontributors.org/docs/en/emoji-key
+[all-contributors]: https://github.com/all-contributors/all-contributors
+[all-contributors-badge]: https://img.shields.io/github/all-contributors/kentcdodds/cross-env?color=orange&style=flat-square
+[bugs]: https://github.com/kentcdodds/cross-env/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3A%22%F0%9F%90%9B+Bug%22+sort%3Acreated-desc
+[requests]: https://github.com/kentcdodds/cross-env/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3Aenhancement
+[good-first-issue]: https://github.com/kentcdodds/cross-env/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3A%22good+first+issue%22
+
[angular-formly]: https://github.com/formly-js/angular-formly
[cross-spawn]: https://www.npmjs.com/package/cross-spawn
+[malware]: http://blog.npmjs.org/post/163723642530/crossenv-malware-on-the-npm-registry
[ts-loader]: https://www.npmjs.com/package/ts-loader
-[malware]:
- http://blog.npmjs.org/post/163723642530/crossenv-malware-on-the-npm-registry
+[win-bash]: https://msdn.microsoft.com/en-us/commandline/wsl/about
+
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index 1f97721..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-environment:
- matrix:
- - node_version: '10.14'
- - node_version: '12'
- - node_version: '14'
-branches:
- only:
- - master
-install:
- - ps: Install-Product node $env:node_version
- - npm install
-test_script: npm run validate
-cache:
- - ~/.npm
-build: off