Skip to content

Commit fef527c

Browse files
build: configure semantic-release
1 parent df15106 commit fef527c

File tree

4 files changed

+13196
-3927
lines changed

4 files changed

+13196
-3927
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
name: Build e release
2-
on:
3-
release:
4-
types: [created]
2+
"on":
3+
push:
4+
branches:
5+
- master
56
jobs:
67
build:
78
runs-on: ubuntu-latest
89
steps:
910
- uses: actions/checkout@v3
10-
# Setup .npmrc file to publish to npm
1111
- uses: actions/setup-node@v3
1212
with:
1313
node-version: '16.x'
1414
registry-url: 'https://registry.npmjs.org'
1515
- run: npm i
1616
- run: npm run build
1717
- run: npm ci
18-
- run: npm publish
18+
- run: npx semantic-release
1919
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2021
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.releaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"branches": [
3+
"master"
4+
]
5+
}

0 commit comments

Comments
 (0)