Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit cc96fee

Browse files
committed
add release
1 parent 4f195fa commit cc96fee

File tree

4 files changed

+1800
-64
lines changed

4 files changed

+1800
-64
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ jobs:
3030

3131
- name: Build
3232
run: yarn build
33+
34+
- name: Release
35+
if: matrix.node == '16.x' && matrix.os == ubuntu-latest
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
run: yarn semantic-release

package.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firestore-graph-hooks",
3-
"version": "0.1.0",
3+
"version": "0.0.0-development",
44
"license": "MIT",
55
"author": "ishowta",
66
"main": "dist/index.js",
@@ -19,7 +19,8 @@
1919
"start": "dts watch",
2020
"emulator": "firebase emulators:start --project demo-firebase-graph-hooks",
2121
"test": "firebase emulators:exec --project demo-firebase-graph-hooks \"dts test --passWithNoTests\"",
22-
"test:ci": "firebase emulators:exec --project demo-firebase-graph-hooks \"dts test --passWithNoTests --ci --coverage --maxWorkers=2\""
22+
"test:ci": "firebase emulators:exec --project demo-firebase-graph-hooks \"dts test --passWithNoTests --ci --coverage --maxWorkers=2\"",
23+
"semantic-release": "semantic-release"
2324
},
2425
"husky": {
2526
"hooks": {
@@ -60,6 +61,8 @@
6061
"devDependencies": {
6162
"@firebase/rules-unit-testing": "^2.0.2",
6263
"@nodeguy/channel": "^1.0.1",
64+
"@semantic-release/changelog": "^6.0.1",
65+
"@semantic-release/git": "^10.0.1",
6366
"@size-limit/preset-small-lib": "^7.0.8",
6467
"@testing-library/react-hooks": "^7.0.2",
6568
"@tsconfig/create-react-app": "^1.0.2",
@@ -76,9 +79,24 @@
7679
"lodash": "^4.17.21",
7780
"react": "^17.0.2",
7881
"react-dom": "^17.0.2",
82+
"semantic-release": "^19.0.2",
7983
"size-limit": "^7.0.8",
8084
"traverse": "^0.6.6",
8185
"tslib": "^2.3.1",
8286
"typescript": "^4.5.5"
87+
},
88+
"repository": {
89+
"type": "git",
90+
"url": "https://github.com/ishowta/firestore-join-hooks.git"
91+
},
92+
"release": {
93+
"plugins": [
94+
"@semantic-release/commit-analyzer",
95+
"@semantic-release/release-notes-generator",
96+
"@semantic-release/changelog",
97+
"@semantic-release/npm",
98+
"@semantic-release/github",
99+
"@semantic-release/git"
100+
]
83101
}
84102
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
// see https://www.typescriptlang.org/tsconfig to better understand tsconfigs
33
"extends": "@tsconfig/create-react-app/tsconfig.json",
4-
"include": ["src", "types"],
4+
"include": ["src", "types"]
55
}

0 commit comments

Comments
 (0)