Skip to content

Commit 29c0a1f

Browse files
author
Manu
committed
feat(application): added semantic-release
1 parent d1d1c25 commit 29c0a1f

File tree

7 files changed

+18220
-192
lines changed

7 files changed

+18220
-192
lines changed

.github/workflows/main.yml

+24-19
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,43 @@
1+
# This is a basic workflow to help you get started with Actions
2+
13
name: CI
2-
on: [push]
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
branches: [ master, beta ]
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
312
jobs:
13+
# This workflow contains a single job called "build"
414
build:
5-
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
6-
7-
runs-on: ${{ matrix.os }}
15+
# The type of runner that the job will run on
16+
runs-on: ubuntu-latest
817
strategy:
918
matrix:
10-
node: ['14.x']
11-
os: [ubuntu-latest]
19+
node_version: ['14.x']
1220

21+
# Steps represent a sequence of tasks that will be executed as part of the job
1322
steps:
14-
- name: Checkout repo
15-
uses: actions/checkout@v2
16-
17-
- name: Use Node ${{ matrix.node }}
18-
uses: actions/setup-node@v1
19-
with:
20-
node-version: ${{ matrix.node }}
21-
registry-url: 'https://registry.npmjs.org'
23+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24+
- uses: actions/checkout@v2
2225

23-
- name: Install deps and build (with cache)
24-
uses: bahmutov/npm-install@v1
26+
- name: Install Dependencies
27+
run: yarn
2528

2629
- name: Lint
2730
run: yarn lint
2831

2932
- name: Test
3033
run: yarn test --ci --coverage --maxWorkers=2
3134

32-
- name: Build
35+
- name: Install Dependencies
3336
run: yarn build
3437

35-
- name: Publish
36-
run: yarn publish
38+
- name: Semantic Release
39+
run: yarn semver
3740
env:
41+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
3842
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43+

0 commit comments

Comments
 (0)