From 5276533b4e58c1f6b575716552ffde1b39a79771 Mon Sep 17 00:00:00 2001 From: Bolorunduro Valiant-Joshua Date: Thu, 8 Dec 2022 16:05:26 +0100 Subject: [PATCH 1/4] Create node.js.yml --- .github/workflows/node.js.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..5001727 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,31 @@ +name: Node.js CI + +on: + push: + branches: [ "master", "alpha" ] + pull_request: + branches: [ "master", "alpha" ] + +env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test + - run: npx semantic-release From 2b13680d45f3b5cd6c414b08ff3079df7d386a14 Mon Sep 17 00:00:00 2001 From: Bolorunduro Valiant-Joshua Date: Thu, 8 Dec 2022 16:06:56 +0100 Subject: [PATCH 2/4] Update node.js.yml --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 5001727..710c512 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -25,7 +25,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci + - run: npm ci --if-present - run: npm run build --if-present - - run: npm test + - run: npm test --if-present - run: npx semantic-release From 845933c7551bd0f27e76f65aecc8b6b5c7c89518 Mon Sep 17 00:00:00 2001 From: Bolorunduro Valiant-Joshua Date: Thu, 8 Dec 2022 16:07:17 +0100 Subject: [PATCH 3/4] Update node.js.yml --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 710c512..e6ba21e 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [16.x, 18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: From 5e8e81435401fe59cc295d71edfeeaeb0343cc91 Mon Sep 17 00:00:00 2001 From: Bolorunduro Valiant-Joshua Date: Thu, 8 Dec 2022 16:08:29 +0100 Subject: [PATCH 4/4] Update node.js.yml --- .github/workflows/node.js.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e6ba21e..e87ab2a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -25,7 +25,4 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci --if-present - - run: npm run build --if-present - - run: npm test --if-present - run: npx semantic-release