do-webp 1.0.2 → 1.0.3

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.
@@ -0,0 +1,35 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*" # публикация при создании тега вида v1.0.0, v2.1.3 и т.д.
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ id-token: write # для публикации с provenance (npm publish --provenance)
14
+
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v6
18
+
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: "20.x"
23
+ registry-url: "https://registry.npmjs.org"
24
+ cache: "npm"
25
+
26
+ - name: Install dependencies
27
+ run: npm ci
28
+
29
+ - name: Run tests (if any)
30
+ run: npm test || echo "No tests configured"
31
+
32
+ - name: Publish to npm
33
+ run: npm publish --provenance --access public
34
+ env:
35
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "do-webp",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Convert images to WebP via npx do-webp",
5
+ "repository": "manshooo/do-webp",
5
6
  "bin": {
6
7
  "do-webp": "./bin/do-webp.js"
7
8
  },