smooth-loader 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.forgejo/workflows/npm-publish.yml +21 -19
- package/CHANGELOG.md +3 -0
- package/package.json +1 -1
|
@@ -4,27 +4,29 @@ enable-email-notifications: true
|
|
|
4
4
|
# Good article: https://medium.com/@codewithwaheed/publish-your-first-package-using-npm-and-github-actions-e453ca9f9fd2
|
|
5
5
|
|
|
6
6
|
on:
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
push:
|
|
8
|
+
branches: [master]
|
|
9
9
|
|
|
10
10
|
jobs:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
- name: Checkout
|
|
16
|
-
uses: actions/checkout@v4
|
|
11
|
+
publish:
|
|
12
|
+
runs-on: podman
|
|
13
|
+
container: docker.io/library/node:20
|
|
14
|
+
name: Publish to NPM registry
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
node-version: '20'
|
|
22
|
-
registry-url: 'https://registry.npmjs.org/'
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout
|
|
18
|
+
uses: actions/checkout@v4
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
- name: Setup Node.js
|
|
21
|
+
uses: https://github.com/actions/setup-node@v7
|
|
22
|
+
with:
|
|
23
|
+
node-version: "20"
|
|
24
|
+
registry-url: "https://registry.npmjs.org/"
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
- name: Install Deps
|
|
27
|
+
run: npm install
|
|
28
|
+
|
|
29
|
+
- name: Publish Library
|
|
30
|
+
run: npm publish
|
|
31
|
+
env:
|
|
32
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smooth-loader",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "This package allows you to lazy load your images using IntersectionObserver technology. It supports loading background images as well as the regular images with img tag.",
|
|
5
5
|
"main": "lib/js/index.js",
|
|
6
6
|
"types": "lib/js",
|