Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #50 from alvarosaburido/feature/semantic-release
Browse files Browse the repository at this point in the history
feat(ci): add semantic release with github actions
  • Loading branch information
alvarosabu authored Jul 14, 2020
2 parents 4769e0e + 095d11c commit be4297c
Show file tree
Hide file tree
Showing 3 changed files with 15,627 additions and 9,707 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ci

on:
push:
branches:
- master
pull_request:
branches:
- master
- dev

jobs:
test-and-release:
name: Run tests and release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
CI: true
run: npm run semantic-release
Loading

0 comments on commit be4297c

Please sign in to comment.