2019-10-21 21:19:35 +03:00
|
|
|
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
|
|
|
|
|
|
|
name: release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-ubuntu-latest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Use Node.js 12.x
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12.x
|
|
|
|
|
|
|
|
- run: node --version
|
|
|
|
- run: npm --version
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run test
|
|
|
|
- run: npm run build
|
|
|
|
- run: npx semantic-release
|
|
|
|
|
|
|
|
env:
|
|
|
|
CI: true
|
2019-10-21 22:52:57 +03:00
|
|
|
GH_TOKEN: ${{secrets.GH_TOKEN}}
|
|
|
|
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
|