Skip to content

Commit 4d2b541

Browse files
committed
feat: Add semantic-release script
1 parent 6b68541 commit 4d2b541

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/publish-on-npm.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ on:
55
branches: [main, beta]
66

77
jobs:
8-
build:
8+
release:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v1
1313
with:
1414
node-version: 12
15-
registry-url: 'https://registry.npmjs.org'
1615
- run: yarn install --frozen-lockfile
1716
- run: yarn run build
1817
- run: npx semantic-release

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"prepublish": "npm run build",
1414
"build:rollup": "rollup -c rollup.config.js",
1515
"build:declaration": "tsc",
16+
"semantic-release": "semantic-release",
1617
"cleanup": "rimraf dist",
1718
"build": "npm run cleanup && npm-run-all build:*",
1819
"prettier": "prettier --write '{src,__tests__}/*.tsx'",

0 commit comments

Comments
 (0)