Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
<img src="banner.png">
</div>

## Features

- [x] Rollupjs packaging system with TypeScript by default
- [x] Tslint support
- [x] Husky hooks support
- [x] Conventional release by **standard-version**
- [x] GitHub actions (build, create github release, publish to npm)

## Installation

Make sure `yeoman` is installed
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: create-github-release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
create-github-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/create-release@v1
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
tag_name: ${{github.ref}}
release_name: Release ${{github.ref}}
30 changes: 30 additions & 0 deletions generators/app/templates/.github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: main

on: push

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn
- name: Analyze source
run: yarn lint

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn
- name: Build source
run: yarn build
27 changes: 27 additions & 0 deletions generators/app/templates/.github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: publish-npm

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn
- name: Analyze source
run: yarn lint
- name: Build source
run: yarn build
- name: Publish package
run: yarn publish --access public
env:
# Create your own token at https://github.com/organization/repository/settings/secrets
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}