Skip to content

Commit

Permalink
Merge pull request #6 from anno-ai/devel
Browse files Browse the repository at this point in the history
devel->master
  • Loading branch information
michaelmohamed-anno authored Oct 1, 2020
2 parents c852ab7 + 9dd3fc5 commit dcb3884
Show file tree
Hide file tree
Showing 6 changed files with 1,321 additions and 1,747 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/node-audit-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

# 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: NPM Audit Dependencies

on:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.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: Setup npmrc
run: echo "" >> .npmrc && echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> .npmrc
- run: npx audit-ci -m
52 changes: 52 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Semantic Release

on:
push:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

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

steps:
- name: Git Checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Setup npmrc
run: echo "" >> .npmrc && echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> .npmrc

- run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: npm run build --if-present

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 17.1.1
id: semantic # Need an `id` for output variables
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Do something when a new release published
if: steps.semantic.outputs.new_release_published == 'true'
run: |
echo ${{ steps.semantic.outputs.new_release_version }}
echo ${{ steps.semantic.outputs.new_release_major_version }}
echo ${{ steps.semantic.outputs.new_release_minor_version }}
echo ${{ steps.semantic.outputs.new_release_patch_version }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ test/configs/*.json
.idea
azure_error
coverage.html
.coveralls.yml
pkgcloud.lcov*
node-jscoverage
.nyc_output
Expand Down
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
.idea
azure_error
coverage.html
.coveralls.yml
pkgcloud.lcov*
node-jscoverage
.nyc_output
Expand Down
Loading

0 comments on commit dcb3884

Please sign in to comment.