@esavoretti/flexmenu 1.0.0 → 1.0.2

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,26 @@
1
+ name: Publish Package to NPM
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout repository code
12
+ uses: actions/checkout@v4
13
+
14
+ - name: Setup Node.js environment
15
+ uses: actions/setup-node@v4
16
+ with:
17
+ node-version: '20'
18
+ registry-url: 'https://npmjs.org'
19
+
20
+ - name: Install dependencies
21
+ run: npm install
22
+
23
+ - name: Publish to NPM
24
+ run: npm publish --access public
25
+ env:
26
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esavoretti/flexmenu",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Menu web component with built-in flexibility to accommodate itself to mobile screens",
5
5
  "main": "flexmenu.js",
6
6
  "type": "module",
@@ -13,5 +13,8 @@
13
13
  "type": "git",
14
14
  "url": "git+https://github.com/sandy98/flexmenu.git"
15
15
  },
16
- "license": "MIT"
16
+ "license": "MIT",
17
+ "publishConfig": {
18
+ "access": "public"
19
+ }
17
20
  }