Skip to content

Commit

Permalink
Merge pull request #1 from ns0m/feature/npm-fork
Browse files Browse the repository at this point in the history
Init npm fork
  • Loading branch information
ath0mas authored Oct 1, 2020
2 parents fae5329 + d340865 commit f9c0bd1
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish-gpr.yml
Original file line number Diff line number Diff line change
@@ -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}}
17 changes: 17 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -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}}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ Thumbs.db
nbproject/
.git/
/.project
/node_modules/
/node_modules/
.idea/
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github/
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand All @@ -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",
Expand Down

0 comments on commit f9c0bd1

Please sign in to comment.