diff --git a/.github/workflows/publish-gpr.yml b/.github/workflows/publish-gpr.yml new file mode 100644 index 0000000..b62b803 --- /dev/null +++ b/.github/workflows/publish-gpr.yml @@ -0,0 +1,19 @@ +name: Publish GPR +on: + release: + types: [created] +jobs: + publish-gpr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + scope: '@ns0m' + - run: npm ci + - run: echo registry=https://npm.pkg.github.com/ns0m >> .npmrc + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GPR_TOKEN}} diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml new file mode 100644 index 0000000..74672ae --- /dev/null +++ b/.github/workflows/publish-npm.yml @@ -0,0 +1,17 @@ +name: Publish NPM +on: + release: + types: [created] +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/.gitignore b/.gitignore index 78a942e..cb08279 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ Thumbs.db nbproject/ .git/ /.project -/node_modules/ \ No newline at end of file +/node_modules/ +.idea/ diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..bb0224d --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +.github/ diff --git a/README.md b/README.md index aef4349..40252a8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +### Publication-only version of the [viliusle/Hermite-resize](https://github.com/viliusle/Hermite-resize) package. [![Latest Published Version](https://img.shields.io/npm/v/@ns0m/hermite-resize)](https://www.npmjs.com/package/@ns0m/hermite-resize) +``` +npm install @ns0m/hermite-resize +``` + +--- + # Hermite-resize Fast canvas image resize/resample using Hermite filter with JavaScript. Supports transparency, gives good quality. diff --git a/package.json b/package.json index a02dc0f..1162bb1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "hermite-resize", + "name": "@ns0m/hermite-resize", "version": "2.2.10", "author": "Vilius L.", "description": "Canvas image resize/resample using Hermite filter with JavaScript.", @@ -10,9 +10,9 @@ ], "repository": { "type": "git", - "url": "https://github.com/viliusle/Hermite-resize" + "url": "https://github.com/ns0m/Hermite-resize.git" }, - "homepage": "https://github.com/viliusle/miniPaint", + "homepage": "https://github.com/ns0m/Hermite-resize", "license": "MIT", "devDependencies": { "del": "^3.0.0",