Skip to content

Commit

Permalink
feat: add GitHub actions and remove boilerplate samples (#1)
Browse files Browse the repository at this point in the history
* feat: add GitHub actions

* fix: update .npmrc

* fix: update yarn.lock

* chore: remove boilerplate samples

---------

Co-authored-by: Bryce Tham <btham@cisco.com>
  • Loading branch information
brycetham and brycetham authored Apr 5, 2023
1 parent 9e2f8cf commit 24fabea
Show file tree
Hide file tree
Showing 6 changed files with 2,886 additions and 2,611 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
push:
branches:
- main

jobs:
semantic-release:
name: semantic-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install
- run: yarn build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: pull-request-checks
on: [pull_request]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: yarn install
- run: yarn test:lint
- run: yarn test:coverage
5 changes: 2 additions & 3 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
engine-strict = true
@ciscortc:registry = https://engci-maven.cisco.com/artifactory/api/npm/webrtc-core-npm/
registry = https://engci-maven.cisco.com/artifactory/api/npm/webex-intelligence-npm/
registry = https://registry.npmjs.org

8 changes: 0 additions & 8 deletions src/sample.spec.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/sample.ts

This file was deleted.

Loading

0 comments on commit 24fabea

Please sign in to comment.