2021-09-27 23:24:28 +08:00
|
|
|
name: Release Packages
|
2019-10-30 23:43:05 +08:00
|
|
|
|
|
|
|
on:
|
2021-09-27 23:37:22 +08:00
|
|
|
workflow_dispatch:
|
2019-10-30 23:43:05 +08:00
|
|
|
release:
|
|
|
|
types: [created]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-11-03 05:33:51 +08:00
|
|
|
- uses: actions/checkout@v2.4.0
|
2021-09-27 22:48:04 +08:00
|
|
|
- uses: actions/setup-node@v2.4.1
|
2019-10-30 23:43:05 +08:00
|
|
|
with:
|
2020-11-05 20:26:49 +08:00
|
|
|
node-version: 14
|
2019-10-30 23:43:05 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Build
|
|
|
|
run: npm run build
|
|
|
|
- name: Readmes
|
|
|
|
run: npm run readmes
|
|
|
|
|
|
|
|
publish-npm:
|
|
|
|
needs: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-11-03 05:33:51 +08:00
|
|
|
- uses: actions/checkout@v2.4.0
|
2021-09-27 22:48:04 +08:00
|
|
|
- uses: actions/setup-node@v2.4.1
|
2019-10-30 23:43:05 +08:00
|
|
|
with:
|
2020-11-05 20:26:49 +08:00
|
|
|
node-version: 14
|
2019-10-30 23:43:05 +08:00
|
|
|
registry-url: https://registry.npmjs.org/
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run shipit
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|