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:
|
2021-03-26 12:04:19 -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
|
2021-04-09 03:13:42 -05:00
|
|
|
- name: Publish
|
|
|
|
run: sh scripts/publish.sh
|
|
|
|
env:
|
|
|
|
REGISTRY_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
|
|
|
REGISTRY_URL: registry.npmjs.org
|
2019-10-01 14:38:55 -05:00
|
|
|
- name: Create release notes
|
|
|
|
run: sh scripts/github-release.sh
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|