2021-09-27 17:24:28 +02:00
|
|
|
name: Release Packages
|
2019-10-30 16:43:05 +01:00
|
|
|
|
|
|
|
on:
|
2021-09-27 17:37:22 +02:00
|
|
|
workflow_dispatch:
|
2019-10-30 16:43:05 +01:00
|
|
|
release:
|
|
|
|
types: [created]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-09-27 22:50:39 +02:00
|
|
|
- uses: actions/checkout@v2.3.4
|
2021-09-27 16:48:04 +02:00
|
|
|
- uses: actions/setup-node@v2.4.1
|
2019-10-30 16:43:05 +01:00
|
|
|
with:
|
2020-11-05 13:26:49 +01:00
|
|
|
node-version: 14
|
2019-10-30 16:43:05 +01: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-09-27 22:50:39 +02:00
|
|
|
- uses: actions/checkout@v2.3.4
|
2021-09-27 16:48:04 +02:00
|
|
|
- uses: actions/setup-node@v2.4.1
|
2019-10-30 16:43:05 +01:00
|
|
|
with:
|
2020-11-05 13:26:49 +01:00
|
|
|
node-version: 14
|
2019-10-30 16:43:05 +01:00
|
|
|
registry-url: https://registry.npmjs.org/
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run shipit
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|