From a96eb2aedd67647c24cd9b55bb1a54eb870da2f8 Mon Sep 17 00:00:00 2001 From: Daniel Montoya Date: Thu, 5 Oct 2023 08:36:53 -0500 Subject: [PATCH 1/2] feat(peer): accept 22 semantic release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c4b37b5..105d917 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "tempy": "0.7.1" }, "peerDependencies": { - "semantic-release": ">=11.0.0 <18.0.0" + "semantic-release": ">=11.0.0 <18.0.0 || ^22.0.0" }, "eslintConfig": { "extends": "@eclass" From 54587fd8509a82b10eae287b3e526199c49b8abc Mon Sep 17 00:00:00 2001 From: Daniel Montoya Date: Thu, 5 Oct 2023 12:07:09 -0500 Subject: [PATCH 2/2] feat(test): travis change --- .github/workflows/nodejs.yml | 96 ++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..cd89de2 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,96 @@ +name: Node.js CI/CD + +on: + push: + branches: + - master + +jobs: + test: + name: Test + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12, 10] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Cache npm + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Install dependencies + run: npm ci + + - name: ESLint + run: npx eslint . + + - name: Commitlint + run: | + npm i -g @commitlint/travis-cli + commitlint-travis + + coverage: + name: Code Coverage + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 12 + + - name: Cache npm + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Install dependencies + run: npm ci + + - name: Check Code Coverage + run: | + npm install -g coveralls + npx nyc check-coverage --lines 85 --per-file + + - name: Generate Coverage Report + run: | + npx nyc report > lcov.info + coveralls < lcov.info + + deploy: + name: Deploy to Master + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 12 + + - name: Install dependencies + run: npm ci + + - name: Semantic Release + run: npx semantic-release