Skip to content

Commit

Permalink
Added GitHub actions definition
Browse files Browse the repository at this point in the history
  • Loading branch information
gius committed Nov 25, 2021
1 parent 63ef008 commit c44765a
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 30 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish packages to NPM

on:
release:
types: [published]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- uses: little-core-labs/[email protected]
id: tagName
with:
tagRegex: "v(.*)"
tagRegexGroup: 1
- run: npm install
- run: npx lerna bootstrap
- run: npm run build
- run: npm test
- run: npm run lint
- run: npx lerna publish from-package --yes --no-git-tag-version --no-push
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
24 changes: 24 additions & 0 deletions .github/workflows/validatecommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate commit

on:
pull_request:
push:
branches:
- "**"
tags-ignore:
- "v*.*" # We don't want this to run on release

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npx lerna bootstrap
- run: npm run build
- run: npm test
- run: npm run lint
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "frui.ts",
"publishConfig": {
"registry": "https://nexus.eman.cz/repository/eman-npm/"
},
"version": "0.1.0",
"description": "MVVM UI framework",
"main": "index.js",
Expand Down
3 changes: 0 additions & 3 deletions packages/apiclient/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "@frui.ts/apiclient",
"publishConfig": {
"registry": "https://nexus.eman.cz/repository/eman-npm/"
},
"version": "0.7.2",
"description": "Frui.ts helpers for http communication",
"author": "Augustin Šulc <[email protected]>",
Expand Down
3 changes: 0 additions & 3 deletions packages/bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "@frui.ts/bootstrap",
"publishConfig": {
"registry": "https://nexus.eman.cz/repository/eman-npm/"
},
"version": "0.7.2",
"description": "Bootstrap controls ready for Frui.ts integration",
"author": "Augustin Šulc <[email protected]>",
Expand Down
3 changes: 0 additions & 3 deletions packages/data/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "@frui.ts/data",
"publishConfig": {
"registry": "https://nexus.eman.cz/repository/eman-npm/"
},
"version": "0.7.2",
"description": "Helpers and interfaces for handling paged and sorted data sets",
"author": "Augustin Šulc <[email protected]>",
Expand Down
3 changes: 0 additions & 3 deletions packages/datascreens/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "@frui.ts/datascreens",
"publishConfig": {
"registry": "https://nexus.eman.cz/repository/eman-npm/"
},
"version": "0.7.2",
"description": "> TODO: description",
"author": "Augustin Šulc <[email protected]>",
Expand Down
3 changes: 0 additions & 3 deletions packages/dirtycheck/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "@frui.ts/dirtycheck",
"publishConfig": {
"registry": "https://nexus.eman.cz/repository/eman-npm/"
},
"version": "0.7.2",
"description": "Observable dirty checking",
"author": "Augustin Šulc <[email protected]>",
Expand Down
3 changes: 0 additions & 3 deletions packages/helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "@frui.ts/helpers",
"publishConfig": {
"registry": "https://nexus.eman.cz/repository/eman-npm/"
},
"version": "0.7.2",
"description": "Frui.ts helper functions",
"keywords": [
Expand Down
3 changes: 0 additions & 3 deletions packages/screens/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "@frui.ts/screens",
"publishConfig": {
"registry": "https://nexus.eman.cz/repository/eman-npm/"
},
"version": "0.7.2",
"description": "Frui.ts screens",
"author": "Augustin Šulc <[email protected]>",
Expand Down
3 changes: 0 additions & 3 deletions packages/validation/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "@frui.ts/validation",
"publishConfig": {
"registry": "https://nexus.eman.cz/repository/eman-npm/"
},
"version": "0.7.2",
"description": "Observable validation",
"keywords": [
Expand Down
3 changes: 0 additions & 3 deletions packages/views/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "@frui.ts/views",
"publishConfig": {
"registry": "https://nexus.eman.cz/repository/eman-npm/"
},
"version": "0.7.2",
"description": "> TODO: description",
"author": "Augustin Šulc <[email protected]>",
Expand Down

0 comments on commit c44765a

Please sign in to comment.