Skip to content

Commit

Permalink
GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adpeyre authored Feb 6, 2020
1 parent c15c9d4 commit 34f72ec
Show file tree
Hide file tree
Showing 19 changed files with 54 additions and 277 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm version "${GITHUB_REF:11}" --git-tag-version false --commit-hooks false
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
29 changes: 29 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
branches:
- '*' # matches every branch
- '*/*' # matches every branch containing a single '/'
jobs:
eslint:
name: eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- run: npm run eslint

prettier:
name: prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- run: npm run prettier
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
dist
1 change: 0 additions & 1 deletion dist/clever-date.js

This file was deleted.

175 changes: 0 additions & 175 deletions dist/clever-date.js.LICENSE

This file was deleted.

12 changes: 0 additions & 12 deletions dist/src/App.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions dist/src/Configuration/Configuration.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions dist/src/Configuration/ConfigurationValidator.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions dist/src/DateInterval/DateInterval.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions dist/src/DateInterval/DateIntervalCalculator.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions dist/src/Item/Item.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions dist/src/Lang/LangFileConfiguration.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions dist/src/Lang/LangManager.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions dist/src/Rule/Rule.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions dist/src/Rule/RuleInterpreter.d.ts

This file was deleted.

21 changes: 0 additions & 21 deletions dist/src/defaultConfiguration.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/src/index.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "clever-date",
"version": "1.0.0",
"version": "0.0.0-version",
"description": "A Javascript module to show an intelligent date refreshing at regular intervals.",
"main": "dist/clever-date.js",
"scripts": {
"prepare": "webpack",
"eslint": "eslint ./src --ext .ts,.js,.d.ts",
"eslint-fix": "eslint ./src --ext .ts,.js,.d.ts --fix",
"watch": "webpack --watch",
Expand Down

0 comments on commit 34f72ec

Please sign in to comment.