Skip to content

Commit 79cc16b

Browse files
authored
prepare for release
1 parent 101cfe3 commit 79cc16b

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

.github/workflows/publish-npm-package.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [created]
66

77
jobs:
8-
publish:
8+
publish-github:
99
if: github.repository_owner == 'bitpatty'
1010
name: Publish NPM package (GitHub Registry)
1111
runs-on: ubuntu-latest
@@ -26,17 +26,18 @@ jobs:
2626
env:
2727
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828

29-
# publish-npmjs:
30-
# name: Publish NPM package (npmjs.org)
31-
# runs-on: ubuntu-latest
32-
# environment: npm-registry
33-
# steps:
34-
# - uses: actions/checkout@v2
35-
# - uses: actions/setup-node@v2
36-
# with:
37-
# node-version: '16.6.1'
38-
# registry-url: 'https://registry.npmjs.org'
39-
# - run: npm install
40-
# - run: npm publish
41-
# env:
42-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
publish-npmjs:
30+
name: Publish NPM package (npmjs.org)
31+
runs-on: ubuntu-latest
32+
environment: npm-registry
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: actions/setup-node@v2
36+
with:
37+
node-version: '16.6.1'
38+
registry-url: 'https://registry.npmjs.org'
39+
- run: npm install
40+
- run: npm run build
41+
- run: npm publish
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@ import { buildProxyImagePath } from '@bitpatty/next-image-s3-imgproxy-loader';
6464

6565
<div
6666
style={{
67-
backgroundImage: `url(${buildProxyImagePath(
68-
'test-bucket/test-image.png',
69-
new ImgProxyParamBuilder().blur(10).build(),
70-
)})`,
67+
backgroundImage: `url(${buildProxyImagePath('test-bucket/test-image.png', {
68+
proxyParams: new ImgProxyParamBuilder().blur(10).build(),
69+
})})`,
7170
backgroundSize: 'cover',
7271
}}
7372
>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitpatty/next-image-s3-imgproxy-loader",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "imgproxy S3 extension for next/image",
55
"author": "Matteias Collet <matteias.collet@bluewin.ch>",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)