Skip to content

Commit

Permalink
fix: release pipeline, attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
welingtonms committed Mar 20, 2021
1 parent b9a5c4b commit 2a8d7ac
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 16 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Release

on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Running code coverage
run: npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
20 changes: 4 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:
branches: [master]

jobs:
build:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]
node-version: [12.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -23,17 +23,5 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci

- name: Running code coverage
run: npm run coverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Running unit tests
run: npm test

0 comments on commit 2a8d7ac

Please sign in to comment.