Skip to content

Commit

Permalink
feat: add github action for semver
Browse files Browse the repository at this point in the history
  • Loading branch information
sbstjn committed Dec 17, 2020
1 parent 41e5a67 commit ced1129
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Integration

on:
push:
branches: ['*', '*/*', '**', '!main']

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- uses: actions/setup-node@v2-beta
with:
node-version: '12'

- run: yarn

- run: yarn build
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- uses: actions/setup-node@v2-beta
with:
node-version: '12'

- run: yarn

- run: yarn test
version:
runs-on: ubuntu-latest
needs:
- build
- test
steps:
- uses: actions/checkout@v2

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
timeout-minutes: 2
id: semantic
with:
extra_plugins: |
@semantic-release/git
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"branches": ["main", "next"]
}

0 comments on commit ced1129

Please sign in to comment.