From f583ad4f423d7483103d84d2898d8a9bec62b414 Mon Sep 17 00:00:00 2001 From: Joey Guerra Date: Wed, 27 Sep 2023 23:12:16 -0500 Subject: [PATCH] chore: remove travis. run coverage (#19) * chore: remove travis. run coverage * chore: on pull request and push to main * feat: Semantic release --------- Co-authored-by: Joey Guerra --- .github/workflows/build.yml | 10 +++++++++- .travis.yml | 16 ---------------- package.json | 11 +++++++++-- 3 files changed, 18 insertions(+), 19 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd2b6de..d6562ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,9 @@ on: push: branches: - main + pull_request: + branches: + - main permissions: contents: read jobs: @@ -28,4 +31,9 @@ jobs: - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies run: npm audit signatures - name: Run Tests - run: npm test \ No newline at end of file + run: npm run coverage + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 53bee9d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: node_js -sudo: false -notifications: - email: false -node_js: - - "8" # latest stable - - "6" # LTS - - "4" # maintenance -before_script: - - npm prune -after_success: - - npm run coverage - - npm run semantic-release -branches: - except: - - /^v\d+\.\d+\.\d+$/ \ No newline at end of file diff --git a/package.json b/package.json index 270f500..c301d2e 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "hubot-scripts" ], "engines": { - "node": "> 16.20.2", - "npm": "> 8.19.4" + "node": ">= 18", + "npm": ">= 9" }, "repository": { "type": "git", @@ -33,5 +33,12 @@ }, "devDependencies": { "standard": "^17.1.0" + }, + "release": { + "branches": [ + "main", + "next" + ], + "dryRun": false } }