Skip to content

Commit 605dddc

Browse files
committed
refactor: remake release process
1 parent f8f30cb commit 605dddc

File tree

5 files changed

+36
-121
lines changed

5 files changed

+36
-121
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
name: build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 16
20+
cache: 'npm'
21+
22+
- name: install
23+
run: npm install
24+
25+
- name: changelog
26+
run: npm run make:changelog
27+
28+
- uses: ncipollo/release-action@v1
29+
with:
30+
bodyFile: "CHANGELOG.md"
31+
draft: true

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false
3+
tag-version-prefix=""
4+
message="feat: v%s"

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
"version": "0.9.13-alpha",
44
"description": "A CRUD maker based in filesystem",
55
"scripts": {
6+
"preversion": "npm run lint && npm run test",
67
"lint": "npm -w ui run lint",
78
"test": "echo \"Error: no test specified\"",
89
"dev": "npm -w @index-san/electron run dev",
910
"build": "node scripts/build.js",
10-
"make:version": "node scripts/version.js",
11-
"make:use-case": "node scripts/new-use-case",
1211
"make:changelog": "node scripts/changelog",
1312
"changelogen": "changelogen",
1413
"prepare": "husky install"

scripts/new-use-case.js

Lines changed: 0 additions & 85 deletions
This file was deleted.

scripts/version.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)