Skip to content

Commit

Permalink
Merge 89d1f67 into f11dd07
Browse files Browse the repository at this point in the history
  • Loading branch information
bd82 committed Oct 11, 2021
2 parents f11dd07 + 89d1f67 commit 9980791
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 122 deletions.
120 changes: 0 additions & 120 deletions .circleci/config.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Continuous Integration
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
# See: https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: Full Build (node ${{ matrix.node_version }})
runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 12.x
- 14.x
- 16.x
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}

- name: Install dependencies
run: yarn

- name: Build
run: yarn run ci

- name: Report coverage
# coverage should only be reported once per PR/push
if: matrix.node_version == '14.x'
# version is unpinned (should be `v1` === latest v1.x.y)
# see: https://github.com/coverallsapp/github-action/issues/94
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint Commit Messages
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
# See: https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012
push:
branches:
- main
pull_request:
branches:
- main

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/*

- name: Install dependencies
run: yarn

- name: Build
run: yarn run ci

- name: npm auth setup
run: |
yarn logout
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to NPM
run: yarn run lerna:publish

- name: Create Github Release
uses: softprops/action-gh-release@v1
with:
files: packages/*/*.vsix
fail_on_unmatched_files: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![CircleCI](https://circleci.com/gh/SAP/app-studio-toolkit.svg?style=svg)](https://circleci.com/gh/SAP/app-studio-toolkit)
[![Coverage Status](https://coveralls.io/repos/github/SAP/app-studio-toolkit/badge.svg?branch=main)](https://coveralls.io/github/SAP/app-studio-toolkit?branch=main)
[![Continuous Integration](https://github.com/SAP/app-studio-toolkit/actions/workflows/ci.yml/badge.svg)](https://github.com/SAP/app-studio-toolkit/actions/workflows/ci.yml)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/SAP/app-studio-toolkit.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/SAP/app-studio-toolkit/context:javascript)
[![Coverage Status](https://coveralls.io/repos/github/SAP/app-studio-toolkit/badge.svg?branch=main)](https://coveralls.io/github/SAP/app-studio-toolkit?branch=main)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![REUSE status](https://api.reuse.software/badge/github.com/SAP/app-studio-toolkit)](https://api.reuse.software/info/github.com/SAP/app-studio-toolkit)

Expand Down

0 comments on commit 9980791

Please sign in to comment.