2019-10-01 21:38:55 +02:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-10-03 14:53:41 +02:00
|
|
|
- uses: actions/checkout@v2.3.3
|
2019-10-01 21:38:55 +02:00
|
|
|
- name: Use Node (latest)
|
2021-03-03 07:56:12 +01:00
|
|
|
uses: actions/setup-node@v2.1.5
|
2019-10-01 21:38:55 +02:00
|
|
|
with:
|
2021-03-26 18:04:19 +01:00
|
|
|
node-version: 14
|
2019-10-01 21:38:55 +02:00
|
|
|
- name: Install
|
2020-10-11 19:06:21 +02:00
|
|
|
run: yarn install
|
2019-10-01 21:38:55 +02: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 }}
|