From b2b3b8fa23ff3927edb843e15af13312a75bacb6 Mon Sep 17 00:00:00 2001 From: Juanra Dikal Date: Thu, 21 Apr 2022 11:35:35 +0200 Subject: [PATCH] changed workflow --- .github/workflows/nodejs.yml | 100 ----------------------------------- build/build.docs.js | 2 +- 2 files changed, 1 insertion(+), 101 deletions(-) delete mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml deleted file mode 100644 index ac5e15e..0000000 --- a/.github/workflows/nodejs.yml +++ /dev/null @@ -1,100 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - name: build and node tests - runs-on: ubuntu-latest - strategy: - matrix: - os: [ ubuntu-latest, windows-latest, macos-latest ] - node-version: [10.x, 16.x, 18.x] - steps: - - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - - name: install - run: npm ci - - - name: lint - run: npm run lint - - - name: build - run: npm run build:js - - - name: docs - run: npm run docs - - - if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x' - name: browser tests - run: npm run test:browser-headless - - - name: node tests - run: npm run test:node - - publication: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - uses: EndBug/version-check@v1 - id: check - - - name: check version changes - if: steps.check.outputs.changed == 'true' - run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"' - - - uses: actions/setup-node@v1 - if: steps.check.outputs.changed == 'true' - with: - node-version: 16 - registry-url: https://registry.npmjs.org/ - - - name: install - if: steps.check.outputs.changed == 'true' - run: npm ci - - - name: lint - if: steps.check.outputs.changed == 'true' - run: npm run lint - - - name: build - if: steps.check.outputs.changed == 'true' - run: npm run build:js - - - name: docs - if: steps.check.outputs.changed == 'true' - run: npm run docs - - - name: browser tests - if: steps.check.outputs.changed == 'true' - run: npm run test:browser-headless - - - name: node tests and coverage - if: steps.check.outputs.changed == 'true' - run: npm run coverage - - - name: send report to coveralls.io - if: steps.check.outputs.changed == 'true' - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: publish to NPM - if: steps.check.outputs.changed == 'true' - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/build/build.docs.js b/build/build.docs.js index 2b86b0c..93106d5 100644 --- a/build/build.docs.js +++ b/build/build.docs.js @@ -73,7 +73,7 @@ if (repoProvider) { iifeBundle = `[IIFE bundle](https://raw.githubusercontent.com/${repoUsername}/${repoName}/master/${iifeBundlePath})` esmBundle = `[ESM bundle](https://raw.githubusercontent.com/${repoUsername}/${repoName}/master/${esmBundlePath})` umdBundle = `[UMD bundle](https://raw.githubusercontent.com/${repoUsername}/${repoName}/master/${umdBundlePath})` - workflowBadget = `[![Node CI](https://github.com/${repoUsername}/${repoName}/workflows/Node%20CI/badge.svg)](https://github.com/${repoUsername}/${repoName}/actions?query=workflow%3A%22Node+CI%22)` + workflowBadget = `[![build](https://github.com/${repoUsername}/${repoName}/workflows/build/badge.svg)](https://github.com/${repoUsername}/${repoName}/actions?query=workflow%3A%22build%22)` coverallsBadge = `[![Coverage Status](https://coveralls.io/repos/github/${repoUsername}/${repoName}/badge.svg?branch=master)](https://coveralls.io/github/${repoUsername}/${repoName}?branch=master)` break