From 01daf73bbfcee76bef1282b43b9a77d47652f4a0 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 4 May 2019 15:39:29 +0200 Subject: [PATCH 1/8] chore(release): 0.1.3 --- CHANGELOG.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 433e479..0ebd663 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ 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. + +## [0.1.3](https://github.com/verdaccio/ui/compare/v0.1.2...v0.1.3) (2019-05-04) + + + ## [0.1.2](https://github.com/verdaccio/ui/compare/v0.1.1...v0.1.2) (2019-04-28) diff --git a/package.json b/package.json index 381ec8d..e641d8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@verdaccio/ui-theme", - "version": "0.1.2", + "version": "0.1.3", "description": "Verdaccio User Interface", "author": { "name": "Verdaccio Core Team" From 4e899a8574570766ec64bc45cf686c94959566a5 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 4 May 2019 15:41:57 +0200 Subject: [PATCH 2/8] chore: update snapshot --- test/unit/components/__snapshots__/packagelist.spec.js.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/components/__snapshots__/packagelist.spec.js.snap b/test/unit/components/__snapshots__/packagelist.spec.js.snap index 5570b57..a8383eb 100644 --- a/test/unit/components/__snapshots__/packagelist.spec.js.snap +++ b/test/unit/components/__snapshots__/packagelist.spec.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` component should load the component with packages 1`] = `"
  • Private NPM repository

  • \\"Sam\\"
    Sam
    Versionv1.0.0TimePublished on 21.07.2018, 22:11:12 •9 months ago

  • abc description

  • \\"Rose\\"
    Rose
    Versionv1.0.1TimePublished on 21.07.2018, 22:11:12 •9 months ago

  • xyz description

  • \\"Martin\\"
    Martin
    Versionv1.1.0
"`; +exports[` component should load the component with packages 1`] = `"
  • Private NPM repository

  • \\"Sam\\"
    Sam
    Versionv1.0.0TimePublished on 21.07.2018, 22:11:12 •10 months ago

  • abc description

  • \\"Rose\\"
    Rose
    Versionv1.0.1TimePublished on 21.07.2018, 22:11:12 •10 months ago

  • xyz description

  • \\"Martin\\"
    Martin
    Versionv1.1.0
"`; From 5e43ac0d498dcc9383a420197f1059706eefadc5 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 4 May 2019 15:42:15 +0200 Subject: [PATCH 3/8] chore(release): 0.1.4 --- CHANGELOG.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ebd663..54704bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ 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. + +## [0.1.4](https://github.com/verdaccio/ui/compare/v0.1.3...v0.1.4) (2019-05-04) + + + ## [0.1.3](https://github.com/verdaccio/ui/compare/v0.1.2...v0.1.3) (2019-05-04) diff --git a/package.json b/package.json index e641d8e..24aeacd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@verdaccio/ui-theme", - "version": "0.1.3", + "version": "0.1.4", "description": "Verdaccio User Interface", "author": { "name": "Verdaccio Core Team" From c960fa76db81b3faa3fc750eb99a38d41217072d Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 4 May 2019 15:58:50 +0200 Subject: [PATCH 4/8] chore: restore circleci --- .circleci/config.yml | 168 ++++++++++++++++++++++++++++++++++++++++++ scripts/gh_publish.sh | 13 ++++ scripts/publish.sh | 5 +- 3 files changed, 182 insertions(+), 4 deletions(-) create mode 100644 .circleci/config.yml create mode 100755 scripts/gh_publish.sh diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..f7172f9 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,168 @@ +version: 2 + +aliases: + - &defaults + working_directory: ~/ui-theme + - &node11_executor + docker: + - image: circleci/node:11.10.1 + - &node8_executor + docker: + - image: circleci/node:8 + - &node10_executor + docker: + - image: circleci/node:10 + - &default_executor + <<: *node10_executor + - &repo_key + repo-{{ .Branch }}-{{ .Revision }} + - &coverage_key + coverage-{{ .Branch }}-{{ .Revision }} + - &base_config_key + base-config-{{ .Branch }}-{{ .Revision }} + - &yarn_cache_key + yarn-sha-{{ checksum "yarn.lock" }} + - &restore_repo + restore_cache: + keys: + - *repo_key + - &ignore_non_dev_branches + filters: + tags: + only: /.*/ + branches: + ignore: + - /release\/.*/ + - &execute_on_release + filters: + tags: + only: /(v)?[0-9]+(\.[0-9]+)*/ + branches: + ignore: + - /.*/ + +jobs: + prepare: + <<: *defaults + <<: *default_executor + steps: + - *restore_repo + - checkout + - restore_cache: + key: *base_config_key + - run: + name: 'Base environment setup' + command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc + - save_cache: + key: *base_config_key + paths: + - ~/.npmrc + - ~/.gitconfig + - restore_cache: + key: *yarn_cache_key + - run: + name: Install Js dependencies + command: yarn install --no-progress --registry https://registry.verdaccio.org --no-lockfile + - run: + name: Build project + command: yarn run build + - save_cache: + key: *yarn_cache_key + paths: + - ~/.yarn + - ~/.cache/yarn + - node_modules + - save_cache: + key: *repo_key + paths: + - ~/local-storage + + test_node11: + <<: *defaults + <<: *node11_executor + steps: + - *restore_repo + - run: + name: Test with Node 11 + command: yarn run test + + test_node8: + <<: *defaults + <<: *node8_executor + steps: + - *restore_repo + - run: + name: Test with Node 8 + command: yarn test + + test_node10: + <<: *defaults + <<: *node10_executor + steps: + - *restore_repo + - run: + name: Test with Node 10 + command: yarn run test + - save_cache: + key: *coverage_key + paths: + - coverage + + coverage: + <<: *defaults + <<: *default_executor + steps: + - *restore_repo + - restore_cache: + key: *coverage_key + - run: + name: Publish coverage + command: yarn run coverage:publish + - store_artifacts: + path: coverage/clover.xml + prefix: tests + - store_artifacts: + path: coverage + prefix: coverage + - store_test_results: + path: coverage/clover.xml + + publish_package: + <<: *defaults + <<: *default_executor + steps: + - *restore_repo + - restore_cache: + key: *base_config_key + - run: + name: Publish + command: yarn publish + +workflows: + version: 2 + workflow: + jobs: + - prepare: + <<: *ignore_non_dev_branches + - test_node11: + requires: + - prepare + <<: *ignore_non_dev_branches + - test_node8: + requires: + - prepare + <<: *ignore_non_dev_branches + - test_node10: + requires: + - prepare + <<: *ignore_non_dev_branches + - coverage: + requires: + - test_node11 + - test_node8 + - test_node10 + <<: *ignore_non_dev_branches + - publish_package: + requires: + - coverage + <<: *execute_on_release diff --git a/scripts/gh_publish.sh b/scripts/gh_publish.sh new file mode 100755 index 0000000..bddb4bd --- /dev/null +++ b/scripts/gh_publish.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Get the last tag from GitHub +lastTag=$(git describe --tags $(git rev-list --tags --max-count=1)) + +# Print it to the console for verification +echo "Bumping version to new tag: ${lastTag}" + +# creating .npmrc +echo "//$REGISTRY_URL/:_authToken=$REGISTRY_AUTH_TOKEN" > .npmrc + +# Publish to NPM +npm publish --registry https://$REGISTRY_URL/ diff --git a/scripts/publish.sh b/scripts/publish.sh index bddb4bd..1380a21 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -6,8 +6,5 @@ lastTag=$(git describe --tags $(git rev-list --tags --max-count=1)) # Print it to the console for verification echo "Bumping version to new tag: ${lastTag}" -# creating .npmrc -echo "//$REGISTRY_URL/:_authToken=$REGISTRY_AUTH_TOKEN" > .npmrc - # Publish to NPM -npm publish --registry https://$REGISTRY_URL/ +npm publish From da4ac7e851590139377d733e645d5dc74210de6e Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 4 May 2019 16:02:12 +0200 Subject: [PATCH 5/8] chore: update name --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f7172f9..fd8057e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -75,7 +75,7 @@ jobs: - save_cache: key: *repo_key paths: - - ~/local-storage + - ~/ui-theme test_node11: <<: *defaults From 47b98c55502600d899a8b83f6bc8b8cb10dc4443 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 4 May 2019 16:12:43 +0200 Subject: [PATCH 6/8] chore(release): 0.1.5 --- CHANGELOG.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54704bb..a1add07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ 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. + +## [0.1.5](https://github.com/verdaccio/ui/compare/v0.1.4...v0.1.5) (2019-05-04) + + + ## [0.1.4](https://github.com/verdaccio/ui/compare/v0.1.3...v0.1.4) (2019-05-04) diff --git a/package.json b/package.json index 24aeacd..b256d4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@verdaccio/ui-theme", - "version": "0.1.4", + "version": "0.1.5", "description": "Verdaccio User Interface", "author": { "name": "Verdaccio Core Team" From 9ffa6290cc772d361337255b57356e3d75f8c2d4 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Tue, 7 May 2019 20:40:08 +0200 Subject: [PATCH 7/8] fix: pattern allow yarn to add all files on pack (#50) --- .npmignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.npmignore b/.npmignore index 93caabf..4fe1eea 100644 --- a/.npmignore +++ b/.npmignore @@ -1,7 +1,6 @@ ## npm /* -!/static/* +!/static/**/* !index.js !README.md - From 7f07a322f4d636c1184cb70d9a01d41181c4b1f2 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Tue, 7 May 2019 20:41:49 +0200 Subject: [PATCH 8/8] chore(release): 0.1.6 --- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1add07..1765215 100644 --- a/CHANGELOG.md +++ b/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. + +## [0.1.6](https://github.com/verdaccio/ui/compare/v0.1.5...v0.1.6) (2019-05-07) + + +### Bug Fixes + +* pattern allow yarn to add all files on pack ([#50](https://github.com/verdaccio/ui/issues/50)) ([9ffa629](https://github.com/verdaccio/ui/commit/9ffa629)) + + + ## [0.1.5](https://github.com/verdaccio/ui/compare/v0.1.4...v0.1.5) (2019-05-04) diff --git a/package.json b/package.json index b256d4e..142269e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@verdaccio/ui-theme", - "version": "0.1.5", + "version": "0.1.6", "description": "Verdaccio User Interface", "author": { "name": "Verdaccio Core Team"