diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..fb39fc3 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,30 @@ +on: + push: + branches: + - master + pull_request: + types: [ assigned, opened, synchronize, reopened, labeled ] +name: ci +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node: [12, 14, 16] + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - run: node --version + - run: npm install --engine-strict + - run: npm test + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm install + - run: npm test diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..5ec7ab3 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,27 @@ +on: + push: + branches: + - master +name: release-please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: bcoe/release-please-action@v2 + id: release + with: + token: ${{ secrets.GITHUB_TOKEN }} + release-type: node + package-name: yargs + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14 + registry-url: 'https://external-dot-oss-automation.appspot.com/' + if: ${{ steps.release.outputs.release_created }} + - run: npm install + if: ${{ steps.release.outputs.release_created }} + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + if: ${{ steps.release.outputs.release_created }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 29ea7f9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: node_js - -os: - - windows - - osx - - linux - -node_js: - - "node" - - "10" - - "8" - -matrix: - include: - - os: windows - node_js: "latest" - exclude: - - os: windows - node_js: "node" - -after_success: npm run coverage diff --git a/README.md b/README.md index 3910bae..a027e9b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # babel-plugin-istanbul -[![Greenkeeper badge](https://badges.greenkeeper.io/istanbuljs/babel-plugin-istanbul.svg)](https://greenkeeper.io/) -[![Build Status](https://travis-ci.org/istanbuljs/babel-plugin-istanbul.svg?branch=master)](https://travis-ci.org/istanbuljs/babel-plugin-istanbul) [![Coverage Status](https://coveralls.io/repos/github/istanbuljs/babel-plugin-istanbul/badge.svg?branch=master)](https://coveralls.io/github/istanbuljs/babel-plugin-istanbul?branch=master) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![community slack](http://devtoolscommunity.herokuapp.com/badge.svg)](http://devtoolscommunity.herokuapp.com) diff --git a/package.json b/package.json index 4003a8a..6f2995e 100644 --- a/package.json +++ b/package.json @@ -26,16 +26,14 @@ "mocha": "^6.2.2", "nyc": "^15.0.0", "pmock": "^0.2.3", - "standard": "^14.3.1", - "standard-version": "^7.1.0" + "standard": "^14.3.1" }, "scripts": { "coverage": "nyc report --reporter=text-lcov | coveralls", "release": "babel src --out-dir lib", "pretest": "standard && npm run release", "test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha --timeout 5000 test/*.js", - "prepublish": "npm test && npm run release", - "version": "standard-version" + "prepublish": "npm test && npm run release" }, "standard": { "ignore": [