mirror of
https://github.com/SomboChea/ui
synced 2026-01-13 22:55:48 +07:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4cb559137 | ||
|
|
e8fd59696e | ||
|
|
fc114298ad |
118
.github/main.workflow
vendored
118
.github/main.workflow
vendored
@@ -1,79 +1,93 @@
|
||||
workflow "build and test" {
|
||||
resolves = [
|
||||
"lint",
|
||||
"test",
|
||||
"branch-filter",
|
||||
workflow "build & test" {
|
||||
resolves = [,
|
||||
"node:12"
|
||||
]
|
||||
on = "push"
|
||||
on = "pull_request"
|
||||
}
|
||||
|
||||
action "branch-filter" {
|
||||
action "PR:filter" {
|
||||
uses = "actions/bin/filter@master"
|
||||
args = "branch"
|
||||
args = "action 'opened|synchronize'"
|
||||
}
|
||||
|
||||
action "install" {
|
||||
action "node:8" {
|
||||
needs = ["PR:filter"]
|
||||
uses = "docker://node:8"
|
||||
args = "sh scripts/build-test.sh"
|
||||
}
|
||||
|
||||
action "node:10" {
|
||||
needs = ["PR:filter"]
|
||||
uses = "docker://node:10"
|
||||
args = "yarn install"
|
||||
args = "sh scripts/build-test.sh"
|
||||
}
|
||||
|
||||
action "build" {
|
||||
uses = "docker://node:10"
|
||||
needs = ["install"]
|
||||
args = "yarn run build"
|
||||
action "node:11" {
|
||||
needs = ["PR:filter"]
|
||||
uses = "docker://node:11"
|
||||
args = "sh scripts/build-test.sh"
|
||||
}
|
||||
|
||||
action "lint" {
|
||||
uses = "docker://node:10"
|
||||
needs = ["install"]
|
||||
args = "yarn run lint"
|
||||
action "node:12" {
|
||||
needs = [
|
||||
"node:8",
|
||||
"node:10",
|
||||
"node:11"
|
||||
]
|
||||
uses = "docker://node:12"
|
||||
args = "sh scripts/build-test.sh"
|
||||
}
|
||||
|
||||
action "test" {
|
||||
uses = "docker://node:10"
|
||||
needs = ["build"]
|
||||
args = "yarn run test"
|
||||
}
|
||||
|
||||
workflow "release" {
|
||||
workflow "build, test & release" {
|
||||
resolves = [
|
||||
"github-release",
|
||||
"release:lint",
|
||||
"github-release"
|
||||
]
|
||||
on = "push"
|
||||
}
|
||||
|
||||
action "release:tag-filter" {
|
||||
action "push:node:8" {
|
||||
uses = "docker://node:8"
|
||||
args = "sh scripts/build-test.sh"
|
||||
}
|
||||
|
||||
action "push:node:10" {
|
||||
uses = "docker://node:10"
|
||||
args = "sh scripts/build-test.sh"
|
||||
}
|
||||
|
||||
action "push:node:11" {
|
||||
uses = "docker://node:11"
|
||||
args = "sh scripts/build-test.sh"
|
||||
}
|
||||
|
||||
action "push:node:12" {
|
||||
needs = [
|
||||
"push:node:8",
|
||||
"push:node:10",
|
||||
"push:node:11",
|
||||
]
|
||||
uses = "docker://node:12"
|
||||
args = "sh scripts/build-test.sh"
|
||||
}
|
||||
|
||||
action "release:filter" {
|
||||
needs = [
|
||||
"push:node:12"
|
||||
]
|
||||
uses = "actions/bin/filter@master"
|
||||
args = "tag v*"
|
||||
}
|
||||
|
||||
action "release:install" {
|
||||
uses = "docker://node:10"
|
||||
needs = ["release:tag-filter"]
|
||||
args = "yarn install"
|
||||
}
|
||||
|
||||
action "release:build" {
|
||||
uses = "docker://node:10"
|
||||
needs = ["release:install"]
|
||||
args = "yarn run build"
|
||||
}
|
||||
|
||||
action "release:lint" {
|
||||
uses = "docker://node:10"
|
||||
needs = ["release:install"]
|
||||
args = "yarn run lint"
|
||||
}
|
||||
|
||||
action "release:test" {
|
||||
uses = "docker://node:10"
|
||||
needs = ["release:build"]
|
||||
args = "yarn run test"
|
||||
action "release:authorization" {
|
||||
needs = ["release:filter"]
|
||||
uses = "actions/bin/filter@master"
|
||||
args = ["actor", "ayusharma", "juanpicado"]
|
||||
}
|
||||
|
||||
action "release:publish" {
|
||||
needs = ["release:test"]
|
||||
needs = [
|
||||
"release:authorization"
|
||||
]
|
||||
uses = "docker://node:10"
|
||||
args = "sh scripts/publish.sh"
|
||||
secrets = [
|
||||
@@ -91,4 +105,4 @@ action "github-release" {
|
||||
secrets = [
|
||||
"GITHUB_TOKEN",
|
||||
]
|
||||
}
|
||||
}
|
||||
10
CHANGELOG.md
10
CHANGELOG.md
@@ -2,6 +2,16 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
<a name="0.1.1"></a>
|
||||
## [0.1.1](https://github.com/verdaccio/ui/compare/v0.1.0...v0.1.1) (2019-04-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* version rendering issue. ([#38](https://github.com/verdaccio/ui/issues/38)) ([e8fd596](https://github.com/verdaccio/ui/commit/e8fd596))
|
||||
|
||||
|
||||
|
||||
<a name="0.1.0"></a>
|
||||
# [0.1.0](https://github.com/verdaccio/ui/compare/v0.0.13...v0.1.0) (2019-04-26)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/ui-theme",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "Verdaccio User Interface",
|
||||
"author": {
|
||||
"name": "Verdaccio Core Team"
|
||||
|
||||
10
scripts/build-test.sh
Normal file
10
scripts/build-test.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
yarn install
|
||||
|
||||
yarn run build
|
||||
|
||||
yarn run lint
|
||||
|
||||
yarn run test
|
||||
|
||||
@@ -11,6 +11,8 @@ import ListItem from '@material-ui/core/ListItem/index';
|
||||
import React from 'react';
|
||||
import { DIST_TAGS } from '../../../lib/constants';
|
||||
|
||||
const NOT_AVAILABLE = 'Not available';
|
||||
|
||||
class Versions extends React.PureComponent<any> {
|
||||
render() {
|
||||
return (
|
||||
@@ -32,7 +34,8 @@ class Versions extends React.PureComponent<any> {
|
||||
<ListItem className={'version-item'} key={version}>
|
||||
<ListItemText>{version}</ListItemText>
|
||||
<Spacer />
|
||||
<ListItemText>{isVersion && timeMap[version] ? `${formatDateDistance(timeMap[version])} ago` : packages[version]}</ListItemText>
|
||||
{isVersion && <ListItemText>{timeMap[version] ? `${formatDateDistance(timeMap[version])} ago` : NOT_AVAILABLE}</ListItemText>}
|
||||
{isVersion === false && <ListItemText>{packages[version]}</ListItemText>}
|
||||
</ListItem>
|
||||
))}
|
||||
</List>
|
||||
|
||||
Reference in New Issue
Block a user