Skip to content

Commit 962a25d

Browse files
committed
feat: continuous integration para releases automaticas
1 parent d425df6 commit 962a25d

File tree

4 files changed

+21985
-14551
lines changed

4 files changed

+21985
-14551
lines changed

.github/workflows/release.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
persist-credentials: false
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 'lts/*'
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Release
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
run: npx semantic-release

.releaserc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"branches": [
3+
"master",
4+
"next"
5+
]
6+
}

0 commit comments

Comments
 (0)