svg-sprite-generation-loader 2.2.4 → 2.2.6

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.
@@ -1,34 +1,32 @@
1
1
  # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
2
  # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
3
 
4
- name: Node.js Package
4
+ name: Publish Package to npmjs
5
5
 
6
6
  on:
7
7
  release:
8
8
  types: [created]
9
9
 
10
10
  jobs:
11
- build:
11
+ publish:
12
12
  runs-on: ubuntu-latest
13
+ permissions:
14
+ contents: read
15
+ id-token: write
13
16
  steps:
14
- - uses: actions/checkout@v2
15
- - uses: actions/setup-node@v1
16
- with:
17
- always-auth: true
18
- node-version: 20
19
- registry-url: "https://registry.npmjs.org"
20
- - run: yarn install --frozen-lockfile
17
+ - uses: actions/checkout@v4
21
18
 
22
- publish-npm:
23
- needs: build
24
- runs-on: ubuntu-latest
25
- steps:
26
- - uses: actions/checkout@v2
27
- - uses: actions/setup-node@v1
19
+ - name: Install pnpm
20
+ uses: pnpm/action-setup@v4
21
+
22
+ - name: Set Node.js
23
+ uses: actions/setup-node@v6
28
24
  with:
29
- node-version: 20
30
- registry-url: https://registry.npmjs.org/
31
- - run: yarn install --frozen-lockfile
32
- - run: yarn publish
33
- env:
34
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
25
+ node-version: 24
26
+ cache: 'pnpm'
27
+ registry-url: 'https://registry.npmjs.org'
28
+
29
+ - name: Install dependencies
30
+ run: pnpm i --frozen-lockfile
31
+
32
+ - run: pnpm publish --no-git-checks
package/.husky/pre-commit CHANGED
File without changes
package/README.md CHANGED
@@ -67,6 +67,12 @@ npm install svg-sprite-generation-loader --save-dev
67
67
  yarn add svg-sprite-generation-loader --dev
68
68
  ```
69
69
 
70
+ **pnpm**
71
+
72
+ ```bash
73
+ pnpm add svg-sprite-generation-loader --save--dev
74
+ ```
75
+
70
76
  ## Usage:
71
77
 
72
78
  In your webpack config:
package/package.json CHANGED
@@ -1,12 +1,8 @@
1
1
  {
2
2
  "name": "svg-sprite-generation-loader",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "Webpack loader for generating external svg symbol sprite files",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "prepare": "husky install"
9
- },
10
6
  "repository": {
11
7
  "type": "git",
12
8
  "url": "git+https://github.com/vadymshymko/svg-sprite-generation-loader.git"
@@ -51,5 +47,8 @@
51
47
  "lint-staged": {
52
48
  "*.js": "eslint --cache --fix",
53
49
  "*.{js,css,md}": "prettier --write"
50
+ },
51
+ "scripts": {
52
+ "test": "echo \"Error: no test specified\" && exit 1"
54
53
  }
55
- }
54
+ }