Skip to content

Commit 7fe86de

Browse files
authored
Merge pull request #37 from voidberg/voidberg-patch-1
feat(build): create release.yml
2 parents fe7b1c7 + 125255c commit 7fe86de

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Release
5+
6+
on:
7+
push:
8+
branches: [ "master", "main", "next", "next-major", "beta", "alpha" ]
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: '14.x'
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
run: yarn semantic-release

0 commit comments

Comments
 (0)