updated actions

This commit is contained in:
Juanra Dikal 2021-03-25 13:59:44 +01:00
parent 88d3df6c33
commit f3e309072d
1 changed files with 65 additions and 48 deletions

View File

@ -26,56 +26,73 @@ jobs:
- name: install - name: install
run: npm ci run: npm ci
- name: lint
run: npm run lint
- name: build - name: build
run: npm run build run: npm run build:js
- name: docs
run: npm run docs
- name: browser tests
run: npm run test:browser
- name: node tests and coverage
run: npm run coverage
- name: test publication:
run: npm test needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EndBug/version-check@v1
id: check
# publication: - name: check version changes
# needs: build if: steps.check.outputs.changed == 'true'
# runs-on: ubuntu-latest run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'
# steps:
# - uses: actions/checkout@v2
# - uses: EndBug/version-check@v1
# id: check
# - name: check version changes - uses: actions/setup-node@v1
# if: steps.check.outputs.changed == 'true' if: steps.check.outputs.changed == 'true'
# run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"' with:
node-version: 14
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
- 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 }}
# - uses: actions/setup-node@v1 - name: publish to NPM
# if: steps.check.outputs.changed == 'true' if: steps.check.outputs.changed == 'true'
# with: run: npm publish
# node-version: 14 env:
# registry-url: https://registry.npmjs.org/ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: install
# if: steps.check.outputs.changed == 'true'
# run: npm ci
# - name: build
# if: steps.check.outputs.changed == 'true'
# run: npm run build
# - name: test
# if: steps.check.outputs.changed == 'true'
# run: npm test
# - name: create code coverage report
# 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 }}