2019-10-01 14:38:55 -05:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-10-03 07:53:41 -05:00
|
|
|
- uses: actions/checkout@v2.3.3
|
2019-10-01 14:38:55 -05:00
|
|
|
- name: Use Node (latest)
|
2021-03-03 01:56:12 -05:00
|
|
|
uses: actions/setup-node@v2.1.5
|
2019-10-01 14:38:55 -05:00
|
|
|
with:
|
2020-11-20 00:43:57 -05:00
|
|
|
node_version: 14
|
2019-10-01 14:38:55 -05:00
|
|
|
- name: Install
|
2020-10-11 12:06:21 -05:00
|
|
|
run: yarn install
|
2019-10-01 14:38:55 -05:00
|
|
|
- name: Build
|
|
|
|
run: yarn code:build
|
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
|
|
|
- name: Publish
|
|
|
|
run: sh scripts/publish.sh
|
|
|
|
env:
|
|
|
|
REGISTRY_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
|
|
|
REGISTRY_URL: registry.npmjs.org
|
|
|
|
- name: Create release notes
|
|
|
|
run: sh scripts/github-release.sh
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|