Skip to content

Commit

Permalink
Init packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Joozty committed Nov 17, 2019
1 parent a92e6fc commit d5c538a
Show file tree
Hide file tree
Showing 19 changed files with 7,900 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./packages/eslint-config-base"
}
44 changes: 44 additions & 0 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: API Client publish

on:
release:
types: [created]

jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- run: echo ::set-env name=NPM_TOKEN::${{secrets.GITHUB_TOKEN}}
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Git Checkout
uses: actions/checkout@v1

- name: Lint & Build
uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: https://npm.pkg.github.com/
scope: '@oacore/configs'
- run: |
npm ci
npm run lint
- name: Bump version ${{ steps.get_version.outputs.VERSION }}
run: npm run version ${{ steps.get_version.outputs.VERSION }} -- --git-tag-version=false --force-publish --yes

- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Bump version ${{ steps.get_version.outputs.VERSION }}
title: Bump version ${{ steps.get_version.outputs.VERSION }}
body: Bump package.json version
branch: bump-version-${{ steps.get_version.outputs.VERSION }}
base: master

- name: Publish package
run: npm run publish -- --registry='https://npm.pkg.github.com' --yes

18 changes: 18 additions & 0 deletions .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pull request check

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- run: echo ::set-env name=NPM_TOKEN::${{secrets.GITHUB_TOKEN}}
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: npm install & test
run: |
npm ci
npm run lint
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.idea
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}
@oacore:registry=https://npm.pkg.github.com
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./packages/prettier-config')
6 changes: 6 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"packages": [
"packages/*"
],
"version": "0.4.7"
}
Loading

0 comments on commit d5c538a

Please sign in to comment.