add release yml, add build script in pkg json

This commit is contained in:
ibrahim0814
2019-12-05 22:19:41 -08:00
parent a497b16d77
commit 355d574b25
3 changed files with 30 additions and 4 deletions

19
.github/workflows/release.yml vendored Normal file
View File

@@ -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

5
package-lock.json generated
View File

@@ -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",

View File

@@ -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"
}