ConversationLearner-Models/.github/workflows/release.yml

33 строки
626 B
YAML

# 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
GH_TOKEN: ${{secrets.GH_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}