From d06675cf8aedd246b6bbe80e8e57248c65a0b0be Mon Sep 17 00:00:00 2001 From: Shu Masuda Date: Tue, 9 Jun 2020 19:57:17 +0900 Subject: [PATCH] :clipboard: Support UPM --- .github/workflows/publish-upm-package.yml | 16 +++++++ .npmrc | 1 + Assets/CHANGELOG.md | 1 + Assets/README.md | 56 +++++++++++++++++++++++ Assets/package.json | 21 +++++++++ CHANGELOG.md | 1 + README.md | 27 +---------- package.json | 2 +- 8 files changed, 98 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/publish-upm-package.yml create mode 100644 .npmrc create mode 100644 Assets/CHANGELOG.md create mode 100644 Assets/README.md create mode 100644 Assets/package.json create mode 120000 CHANGELOG.md mode change 100644 => 120000 README.md diff --git a/.github/workflows/publish-upm-package.yml b/.github/workflows/publish-upm-package.yml new file mode 100644 index 0000000..d2e28e0 --- /dev/null +++ b/.github/workflows/publish-upm-package.yml @@ -0,0 +1,16 @@ +name: Publish UPM Package + +on: + release: + types: [published] + +jobs: + publish: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: monry/actions-upm-publish@v1 + with: + npm_auth_token: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..39eb00e --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://upm-packages.dev diff --git a/Assets/CHANGELOG.md b/Assets/CHANGELOG.md new file mode 100644 index 0000000..825c32f --- /dev/null +++ b/Assets/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/Assets/README.md b/Assets/README.md new file mode 100644 index 0000000..9eba31f --- /dev/null +++ b/Assets/README.md @@ -0,0 +1,56 @@ +# ExtraLINQ + +* +* Forked from [mariusschulz/ExtraLINQ](https://github.com/mariusschulz/ExtraLINQ) +* Customized for Unity 2017 + +## Requirement + +* Unity 2017 + +## Install + +### With Unity Package Manager + +```bash +upm add package dev.upm-packages.extra-zenject +``` + +Note: `upm` command is provided by [this repository](https://github.com/upm-packages/upm-cli). + +You can also edit `Packages/manifest.json` directly. + +```jsonc +{ + "dependencies": { + // (snip) + "dev.upm-packages.extra-zenject": "[latest version]", + // (snip) + }, + "scopedRegistries": [ + { + "name": "Unofficial Unity Package Manager Registry", + "url": "https://upm-packages.dev", + "scopes": [ + "dev.upm-packages" + ] + } + ] +} +``` + +### Any other else (classical umm style) + +```shell +yarn add "umm/extra_linq#^1.0.0" +``` + +# Usage + +* See [README.md](https://github.com/mariusschulz/ExtraLINQ/blob/master/README.md) in original repository. + +# License + +Copyright (c) 2016 Marius Schulz + +Released under the MIT license, see [LICENSE.txt](LICENSE.txt) diff --git a/Assets/package.json b/Assets/package.json new file mode 100644 index 0000000..781b0c4 --- /dev/null +++ b/Assets/package.json @@ -0,0 +1,21 @@ +{ + "name": "dev.upm-packages.extra-linq", + "displayName": "Extra LINQ", + "version": "1.3.0", + "unity": "2019.3", + "description": "", + "homepage": "https://github.com/umm/extra_linq", + "bugs": { + "url": "https://github.com/umm/extra_linq/issues" + }, + "author": "Tetsuya Mori", + "license": "MIT", + "keywords": [], + "category": "", + "dependencies": { + }, + "repository": { + "type": "git", + "url": "https://github.com/umm/extra_linq" + } +} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 120000 index 0000000..30c7051 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1 @@ +Assets/CHANGELOG.md \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 615fd91..0000000 --- a/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# ExtraLINQ - -* -* Forked from [mariusschulz/ExtraLINQ](https://github.com/mariusschulz/ExtraLINQ) -* Customized for Unity 2017 - -## Requirement - -* Unity 2017 - -## Install - -```shell -$ npm install github:umm/extra_linq -``` - -# Usage - -* See [README.md](https://github.com/mariusschulz/ExtraLINQ/blob/master/README.md) in original repository. - -# License - -Copyright (c) 2016 Marius Schulz - -Released under the MIT license, see [LICENSE.txt](LICENSE.txt) - diff --git a/README.md b/README.md new file mode 120000 index 0000000..858ae46 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Assets/README.md \ No newline at end of file diff --git a/package.json b/package.json index e07ac1a..1659ba2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@umm/extra_linq", - "version": "1.2.2", + "version": "1.3.0", "description": "ExtraLINQ provides a set of extension methods for various .NET sequence types.", "homepage": "https://github.com/umm/extra_linq", "bugs": {