@1024pix/eslint-plugin 1.0.0 → 1.1.1

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,21 @@
1
+ name: automerge check
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - labeled
7
+ - unlabeled
8
+ check_suite:
9
+ types:
10
+ - completed
11
+ status:
12
+ types:
13
+ - success
14
+
15
+ jobs:
16
+ automerge:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: 1024pix/pix-actions/auto-merge@v0
20
+ with:
21
+ auto_merge_token: "${{ secrets.PIX_SERVICE_ACTIONS_TOKEN }}"
@@ -0,0 +1,25 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ repository_dispatch:
8
+ types: ['deploy']
9
+ workflow_dispatch:
10
+
11
+ jobs:
12
+ release:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ persist-credentials: false
18
+
19
+ - uses: 1024pix/pix-actions/release@main
20
+ with:
21
+ npmPublish: true
22
+ updateMajorVersion: true
23
+ env:
24
+ GITHUB_TOKEN: '${{ secrets.PIX_SERVICE_ACTIONS_TOKEN }}'
25
+ NPM_TOKEN: ${{ secrets.NPM_PUBLISH_ACCESS_TOKEN }}
@@ -6,11 +6,10 @@ jobs:
6
6
  test:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v3
10
- - uses: actions/setup-node@v3
9
+ - uses: actions/checkout@v4
10
+ - uses: actions/setup-node@v4
11
11
  with:
12
- node-version: 18
13
- registry-url: https://registry.npmjs.org/
12
+ node-version-file: '.nvmrc'
14
13
 
15
14
  - run: npm ci
16
15
  - run: npm test
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 18.18.0
1
+ 20.12.2
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## [1.1.1](https://github.com/1024pix/eslint-plugin/compare/v1.1.0...v1.1.1) (2024-04-15)
2
+
3
+ ### :arrow_up: Montée de version
4
+
5
+ - [#19](https://github.com/1024pix/eslint-plugin/pull/19) Update dependency node to v20.12.2
6
+
7
+ # [1.1.0](https://github.com/1024pix/eslint-plugin/compare/v1.0.1...v1.1.0) (2024-04-09)
8
+
9
+ ### :rocket: Amélioration
10
+
11
+ - [#17](https://github.com/1024pix/eslint-plugin/pull/17) jouter de la doc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/eslint-plugin",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Des règles de lint pour les projets 1024pix",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/readme.md ADDED
@@ -0,0 +1,9 @@
1
+ # @1024pix/eslint-plugin
2
+
3
+ [![npm](https://img.shields.io/npm/v/@1024pix/eslint-plugin)](https://npmjs.com/package/@1024pix/eslint-plugin)
4
+
5
+ ## Usage
6
+
7
+ ### Install
8
+
9
+ Use [@1024pix/eslint-config](https://github.com/1024pix/eslint-config/).
@@ -0,0 +1,48 @@
1
+ module.exports = {
2
+ "branches": [
3
+ "main",
4
+ "dev"
5
+ ],
6
+ "plugins": [
7
+ [
8
+ "@semantic-release/commit-analyzer",
9
+ {
10
+ "config": "@1024pix/conventional-changelog-pix",
11
+ "releaseRules": [
12
+ { revert: true, release: "patch" },
13
+ { tag: "BUGFIX", pr: '*', release: "patch" },
14
+ { tag: "BUMP", pr: '*', release: "patch" },
15
+ { tag: "DOC", pr: '*', release: "patch" },
16
+ { tag: "TECH", pr: '*', release: "patch" },
17
+ { tag: "FEATURE", pr: '*', release: "minor" },
18
+ { tag: "BREAKING", pr: '*', release: "major" },
19
+ ],
20
+ }
21
+ ],
22
+ [
23
+ "@semantic-release/release-notes-generator",
24
+ {
25
+ "config": "@1024pix/conventional-changelog-pix"
26
+ }
27
+ ],
28
+ "@semantic-release/changelog",
29
+ "@semantic-release/github",
30
+ [
31
+ "@semantic-release/npm",
32
+ {
33
+ "npmPublish": process.env.NPM_PUBLISH === "true",
34
+ }
35
+ ],
36
+ [
37
+ "@semantic-release/git",
38
+ {
39
+ "assets": [
40
+ "CHANGELOG.md",
41
+ "package.json",
42
+ "package-lock.json",
43
+ ],
44
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
45
+ }
46
+ ]
47
+ ]
48
+ }
@@ -1,32 +0,0 @@
1
- name: npm publish @1024pix/eslint-plugin
2
-
3
- on:
4
- workflow_dispatch:
5
- inputs:
6
- version:
7
- type: choice
8
- required: true
9
- options:
10
- - patch
11
- - minor
12
- - major
13
-
14
- jobs:
15
- publish-npm:
16
- runs-on: ubuntu-latest
17
- steps:
18
- - uses: actions/checkout@v4
19
- - uses: actions/setup-node@v3
20
- with:
21
- node-version-file: .nvmrc
22
- cache: npm
23
- registry-url: https://registry.npmjs.org/
24
- - name: Setup git user
25
- run: |
26
- git config --global user.name "pix-service-auto-merge"
27
- git config --global user.email "service+github.auto-merge@pix.fr"
28
- - run: npm version ${{ inputs.version }}
29
- - run: git push && git push --tags
30
- - run: npm publish --access public
31
- env:
32
- NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_ACCESS_TOKEN}}