Skip to content

Commit b6c3dcb

Browse files
committed
chore: release actions
1 parent 5150fd3 commit b6c3dcb

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: npx conventional-github-releaser -p angular
14+
env:
15+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"dev": "npm run build -- --watch",
2121
"build": "tsup src/index.ts --dts --format cjs,esm",
2222
"prepublish": "npm run build",
23-
"release": "standard-version && npm publish"
23+
"release": "standard-version && npm publish && git push"
2424
},
2525
"devDependencies": {
2626
"@antfu/eslint-config-ts": "^0.3.2",

0 commit comments

Comments
 (0)