diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..579f85b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +on: create + +name: Release +jobs: + release: + name: Release Codecov GitHub Action + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + with: + fetch-depth: 3 + - name: Release Action + uses: technote-space/release-github-actions@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CREATE_MINOR_VERSION_TAG: false + COMMIT_NAME: Release GitHub Action + BRANCH_NAME: master diff --git a/package-lock.json b/package-lock.json index 876b18c..057ba94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,11 @@ "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.1.tgz", "integrity": "sha512-nvFkxwiicvpzNiCBF4wFBDfnBvi7xp/as7LE1hBxBxKG2L29+gkIPBiLKMVORL+Hg3JNf07AKRfl0V5djoypjQ==" }, + "@zeit/ncc": { + "version": "0.20.5", + "resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.20.5.tgz", + "integrity": "sha512-XU6uzwvv95DqxciQx+aOLhbyBx/13ky+RK1y88Age9Du3BlA4mMPCy13BGjayOrrumOzlq1XV3SD/BWiZENXlw==" + }, "ajv": { "version": "6.10.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", diff --git a/package.json b/package.json index 282c9ec..4d16130 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { - "name": "test2", - "version": "1.0.0", - "description": "[![GitHub Marketplace](https://img.shields.io/badge/Marketplace-v1.0.3-undefined.svg?logo=github&logoColor=white&style=flat)](https://github.com/marketplace/actions/codecov) ### Easily upload coverage reports to Codecov from GitHub Actions", + "name": "codecov-action", + "version": "1.0.5", + "description": "Upload coverage reports to Codecov from GitHub Actions", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "build": "ncc build index.js" }, "repository": { "type": "git", @@ -20,6 +21,7 @@ "dependencies": { "@actions/core": "^1.2.0", "@actions/exec": "^1.0.1", + "@zeit/ncc": "^0.20.5", "fs": "0.0.1-security", "request": "^2.88.0" }