updated actions
This commit is contained in:
parent
88d3df6c33
commit
f3e309072d
|
@ -26,56 +26,73 @@ jobs:
|
|||
|
||||
- name: install
|
||||
run: npm ci
|
||||
|
||||
|
||||
- name: lint
|
||||
run: npm run lint
|
||||
|
||||
- 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
|
||||
run: npm test
|
||||
publication:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: EndBug/version-check@v1
|
||||
id: check
|
||||
|
||||
# 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 }})"'
|
||||
|
||||
# - 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: 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
|
||||
# if: steps.check.outputs.changed == 'true'
|
||||
# with:
|
||||
# node-version: 14
|
||||
# registry-url: https://registry.npmjs.org/
|
||||
|
||||
# - 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 }}
|
||||
- name: publish to NPM
|
||||
if: steps.check.outputs.changed == 'true'
|
||||
run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
Loading…
Reference in New Issue