Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit 8edd827

Browse files
authoredNov 5, 2020
chore: Switch to GitHub Actions (#251)
1 parent ed844af commit 8edd827

File tree

4 files changed

+119
-75
lines changed

4 files changed

+119
-75
lines changed
 

‎.github/workflows/validate.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: validate
2+
on: [push, pull_request]
3+
jobs:
4+
main:
5+
strategy:
6+
matrix:
7+
os: [ubuntu-latest, windows-latest]
8+
node: [10.14, 10, 12, 14, 15]
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- name: ⬇️ Checkout repo
12+
uses: actions/checkout@v2
13+
14+
- name: ⎔ Setup node
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ matrix.node }}
18+
19+
- name: 📥 Download deps
20+
uses: bahmutov/npm-install@v1
21+
with:
22+
useLockFile: false
23+
24+
- name: ▶️ Run validate script
25+
run: npm run validate
26+
27+
- name: ⬆️ Upload coverage report
28+
uses: codecov/codecov-action@v1
29+
30+
release:
31+
needs: main
32+
runs-on: ubuntu-latest
33+
if:
34+
${{ github.repository == 'kentcdodds/cross-env' &&
35+
contains('refs/heads/master,refs/heads/beta,refs/heads/next,refs/heads/alpha',
36+
github.ref) && github.event_name == 'push' }}
37+
steps:
38+
- name: ⬇️ Checkout repo
39+
uses: actions/checkout@v2
40+
41+
- name: ⎔ Setup node
42+
uses: actions/setup-node@v1
43+
with:
44+
node-version: 14
45+
46+
- name: 📥 Download deps
47+
uses: bahmutov/npm-install@v1
48+
with:
49+
useLockFile: false
50+
51+
- name: 🚀 Release
52+
uses: cycjimmy/semantic-release-action@v2
53+
with:
54+
semantic_version: 17
55+
branches: |
56+
[
57+
'+([0-9])?(.{+([0-9]),x}).x',
58+
'master',
59+
'next',
60+
'next-major',
61+
{name: 'beta', prerelease: true},
62+
{name: 'alpha', prerelease: true}
63+
]
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

‎.travis.yml

-24
This file was deleted.

‎README.md

+53-36
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<div align="center">
22
<h1>cross-env 🔀</h1>
33

4-
Run scripts that set and use environment variables across platforms
5-
4+
<p>Run scripts that set and use environment variables across platforms</p>
65
</div>
76

8-
<hr />
7+
---
98

10-
[![Travis Build Status][build-badge]][build]
11-
[![AppVeyor Build Status][win-build-badge]][win-build]
9+
<!-- prettier-ignore-start -->
10+
[![Build Status][build-badge]][build]
1211
[![Code Coverage][coverage-badge]][coverage]
13-
[![version][version-badge]][package] [![MIT License][license-badge]][license]
14-
15-
[![All Contributors](https://img.shields.io/badge/all_contributors-20-orange.svg?style=flat-square)](#contributors)
16-
[![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc]
12+
[![version][version-badge]][package]
1713
[![downloads][downloads-badge]][npmtrends]
14+
[![MIT License][license-badge]][license]
15+
[![All Contributors][all-contributors-badge]](#contributors-)
16+
[![PRs Welcome][prs-badge]][prs]
17+
[![Code of Conduct][coc-badge]][coc]
18+
<!-- prettier-ignore-end -->
1819

1920
## The problem
2021

@@ -180,7 +181,25 @@ easier for Windows users.
180181
- [`@naholyr/cross-env`](https://www.npmjs.com/package/@naholyr/cross-env) -
181182
`cross-env` with support for setting default values
182183

183-
## Contributors
184+
## Issues
185+
186+
_Looking to contribute? Look for the [Good First Issue][good-first-issue]
187+
label._
188+
189+
### 🐛 Bugs
190+
191+
Please file an issue for bugs, missing documentation, or unexpected behavior.
192+
193+
[**See Bugs**][bugs]
194+
195+
### 💡 Feature Requests
196+
197+
Please file an issue to suggest new features. Vote on feature requests by adding
198+
a 👍. This helps maintainers prioritize what to work on.
199+
200+
[**See Feature Requests**][requests]
201+
202+
## Contributors ✨
184203

185204
Thanks goes to these people ([emoji key][emojis]):
186205

@@ -236,35 +255,33 @@ Contributions of any kind welcome!
236255

237256
MIT
238257

239-
[npm]: https://www.npmjs.com/
258+
<!-- prettier-ignore-start -->
259+
[npm]: https://npmjs.com
240260
[node]: https://nodejs.org
241-
[build-badge]:
242-
https://img.shields.io/travis/kentcdodds/cross-env.svg?style=flat-square
243-
[build]: https://travis-ci.org/kentcdodds/cross-env
244-
[win-build-badge]:
245-
https://img.shields.io/appveyor/ci/kentcdodds/cross-env.svg?style=flat-square
246-
[win-build]: https://ci.appveyor.com/project/kentcdodds/cross-env
247-
[coverage-badge]:
248-
https://img.shields.io/codecov/c/github/kentcdodds/cross-env.svg?style=flat-square
261+
[build-badge]: https://img.shields.io/github/workflow/status/kentcdodds/cross-env/validate?logo=github&style=flat-square
262+
[build]: https://github.com/kentcdodds/cross-env/actions?query=workflow%3Avalidate
263+
[coverage-badge]: https://img.shields.io/codecov/c/github/kentcdodds/cross-env.svg?style=flat-square
249264
[coverage]: https://codecov.io/github/kentcdodds/cross-env
250-
[version-badge]: https://img.shields.io/npm/v/cross-env.svg?style=flat-square
251-
[package]: https://www.npmjs.com/package/cross-env
252-
[downloads-badge]: https://img.shields.io/npm/dm/cross-env.svg?style=flat-square
253-
[npmtrends]: https://www.npmtrends.com/cross-env
254-
[license-badge]: https://img.shields.io/npm/l/cross-env.svg?style=flat-square
255-
[license]: https://github.com/kentcdodds/cross-env/blob/master/other/LICENSE
256-
[prs-badge]:
257-
https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
265+
[version-badge]: https://img.shields.io/npm/v/gatsby-remark-embedder.svg?style=flat-square
266+
[package]: https://www.npmjs.com/package/gatsby-remark-embedder
267+
[downloads-badge]: https://img.shields.io/npm/dm/gatsby-remark-embedder.svg?style=flat-square
268+
[npmtrends]: http://www.npmtrends.com/gatsby-remark-embedder
269+
[license-badge]: https://img.shields.io/npm/l/gatsby-remark-embedder.svg?style=flat-square
270+
[license]: https://github.com/kentcdodds/cross-env/blob/master/LICENSE
271+
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
258272
[prs]: http://makeapullrequest.com
259-
[coc-badge]:
260-
https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
261-
[coc]:
262-
https://github.com/kentcdodds/cross-env/blob/master/other/CODE_OF_CONDUCT.md
263-
[emojis]: https://github.com/kentcdodds/all-contributors#emoji-key
264-
[all-contributors]: https://github.com/kentcdodds/all-contributors
265-
[win-bash]: https://msdn.microsoft.com/en-us/commandline/wsl/about
273+
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
274+
[coc]: https://github.com/kentcdodds/cross-env/blob/master/other/CODE_OF_CONDUCT.md
275+
[emojis]: https://allcontributors.org/docs/en/emoji-key
276+
[all-contributors]: https://github.com/all-contributors/all-contributors
277+
[all-contributors-badge]: https://img.shields.io/github/all-contributors/kentcdodds/cross-env?color=orange&style=flat-square
278+
[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
279+
[requests]: https://github.com/kentcdodds/cross-env/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3Aenhancement
280+
[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
281+
266282
[angular-formly]: https://github.com/formly-js/angular-formly
267283
[cross-spawn]: https://www.npmjs.com/package/cross-spawn
284+
[malware]: http://blog.npmjs.org/post/163723642530/crossenv-malware-on-the-npm-registry
268285
[ts-loader]: https://www.npmjs.com/package/ts-loader
269-
[malware]:
270-
http://blog.npmjs.org/post/163723642530/crossenv-malware-on-the-npm-registry
286+
[win-bash]: https://msdn.microsoft.com/en-us/commandline/wsl/about
287+
<!-- prettier-ignore-end -->

‎appveyor.yml

-15
This file was deleted.

0 commit comments

Comments
 (0)
This repository has been archived.