@innovixx/eslint-config 1.3.2 → 1.3.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.
@@ -1,22 +1,86 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
-
4
- name: Node.js Package
1
+ name: Publish
5
2
 
6
3
  on:
7
4
  release:
8
5
  types: [created]
9
6
 
10
7
  jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ environment: production
11
+ permissions:
12
+ packages: write
13
+ contents: read
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-node@v3
17
+ with:
18
+ node-version: 18
19
+
20
+ - name: Install dependencies
21
+ run: npm install
22
+
23
+ - name: Zip artifact
24
+ run: zip -r artifact.zip . -q
25
+
26
+ - name: Upload artifact
27
+ uses: actions/upload-artifact@v2
28
+ with:
29
+ name: artifact
30
+ path: ./artifact.zip
31
+
11
32
  publish-npm:
33
+ needs: build
12
34
  runs-on: ubuntu-latest
35
+ environment: production
36
+ permissions:
37
+ packages: write
38
+ contents: read
13
39
  steps:
14
- - uses: actions/checkout@v3
40
+ - uses: actions/download-artifact@v2
41
+ with:
42
+ name: artifact
43
+ path: .
44
+
45
+ - name: Unzip artifact
46
+ run: |
47
+ unzip -q artifact.zip
48
+ rm artifact.zip
49
+
15
50
  - uses: actions/setup-node@v3
16
51
  with:
17
- node-version: 16
52
+ node-version: 18
18
53
  registry-url: https://registry.npmjs.org/
19
- - run: npm ci
20
- - run: npm publish
54
+
55
+ - name: Publish to NPM
56
+ run: npm publish
21
57
  env:
22
58
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
59
+
60
+ publish-github:
61
+ needs: build
62
+ runs-on: ubuntu-latest
63
+ environment: production
64
+ permissions:
65
+ packages: write
66
+ contents: read
67
+ steps:
68
+ - uses: actions/download-artifact@v2
69
+ with:
70
+ name: artifact
71
+ path: .
72
+
73
+ - name: Unzip artifact
74
+ run: |
75
+ unzip -q artifact.zip
76
+ rm artifact.zip
77
+
78
+ - uses: actions/setup-node@v3
79
+ with:
80
+ node-version: 18
81
+ registry-url: https://npm.pkg.github.com/
82
+
83
+ - name: Publish to GitHub Packages
84
+ run: npm publish
85
+ env:
86
+ NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovixx/eslint-config",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "main": "configs/index.js",
5
5
  "repository": "git@github.com:Innovixx-Development/eslint-config.git",
6
6
  "description": "Opinionated ESLint config for JavaScript developers",