1
Fork 0

typescript(monorepo-template): feat: readme generation

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2020-05-17 15:44:08 +03:00 committed by prescientmoon
parent af021663b0
commit 27c98b5823
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
4 changed files with 10 additions and 2 deletions

View file

@ -32,4 +32,5 @@ jobs:
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpx semantic-release

View file

@ -0,0 +1,6 @@
---
to: packages/<%= name %>/README.md
---
# <%- Name %>
<%- description %>

View file

@ -5,5 +5,6 @@ exports.prompt = async ({ args }) => ({
...args,
org: packageJson.name,
repository: JSON.stringify(packageJson.repository),
bugs: JSON.stringify(packageJson.bugs)
bugs: JSON.stringify(packageJson.bugs),
description: args.description || ''
})

View file

@ -4,7 +4,7 @@ to: packages/<%= name %>/package.json
{
"name": "@<%= org %>/<%= name %>",
"version": "0.0.0",
"description": "",
"description": "<%- description %>",
"keywords": [],
"main": "dist/bundle.cjs.js",
"module": "dist/bundle.esm.js",