mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
37 lines
924 B
YAML
37 lines
924 B
YAML
name: Release
|
|
on: workflow_dispatch
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10
|
|
- name: Build
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
- name: Test
|
|
run: |
|
|
npm run lint
|
|
npm run test
|
|
- name: Coverage
|
|
uses: coverallsapp/[email protected]
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
run: npx semantic-release
|
|
- name: Publish Docs
|
|
uses: JamesIves/[email protected]
|
|
with:
|
|
branch: gh-pages
|
|
folder: docs/public |