Skip to content

Commit

Permalink
feat: add pipeline and semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
andreafalzetti committed Sep 9, 2020
1 parent c1341de commit c1ff6b8
Show file tree
Hide file tree
Showing 4 changed files with 10,464 additions and 4,427 deletions.
3 changes: 3 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@onoranzefunebricloud/semantic-release-config/public"
}
30 changes: 30 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 0.2

env:
parameter-store:
NPM_TOKEN: "/ofc/NPM_TOKEN"
GITHUB_TOKEN: "/ofc/GITHUB_TOKEN"
CODECOV_TOKEN: "/ofc/CODECOV_TOKEN"

phases:
install:
runtime-versions:
nodejs: 10
commands:
- echo Installing codebuild-extras...
- curl -fsSL https://raw.githubusercontent.com/thii/aws-codebuild-extras/master/install >> extras.sh
- . ./extras.sh
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
build:
commands:
- npm install
- npm run lint
- npm test
- npm run release
- rm ~/.npmrc
post_build:
commands:
# Codecov upload reports
- curl -s https://codecov.io/bash -o codecov.sh
- chmod +x codecov.sh
- ./codecov.sh
Loading

0 comments on commit c1ff6b8

Please sign in to comment.