fixed some workglow changes

This commit is contained in:
Juanra Dikal 2022-04-21 10:50:22 +02:00
parent 92b7275f8b
commit 2f8a8c547b
2 changed files with 54 additions and 5 deletions

47
.github/workflows/manualpublication.yml vendored Normal file
View File

@ -0,0 +1,47 @@
# 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: publish
on:
workflow_dispatch:
jobs:
publication:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: install
run: npm ci
- name: lint
run: npm run lint
- name: build
run: npm run build:js
- name: docs
run: npm run docs
- name: browser tests
run: npm run test:browser-headless
- name: node tests and coverage
run: npm run coverage
- name: send report to coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -15,7 +15,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [10, 12, 14, 16] os: [ ubuntu-latest, windows-latest, macos-latest ]
node-version: [10.x, 16.x, 18.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -36,8 +37,9 @@ jobs:
- name: docs - name: docs
run: npm run docs run: npm run docs
# - name: browser tests - if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
# run: npm run test:browser name: browser tests
run: npm run test:browser-headless
- name: node tests - name: node tests
run: npm run test:node run: npm run test:node
@ -58,7 +60,7 @@ jobs:
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
if: steps.check.outputs.changed == 'true' if: steps.check.outputs.changed == 'true'
with: with:
node-version: 14 node-version: 16
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- name: install - name: install
@ -79,7 +81,7 @@ jobs:
- name: browser tests - name: browser tests
if: steps.check.outputs.changed == 'true' if: steps.check.outputs.changed == 'true'
run: npm run test:browser run: npm run test:browser-headless
- name: node tests and coverage - name: node tests and coverage
if: steps.check.outputs.changed == 'true' if: steps.check.outputs.changed == 'true'