@paratco/eslint-config 1.0.6 → 1.0.7

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,52 @@
1
+ name: Publish To GitHub
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on:
10
+ - ubuntu-latest
11
+
12
+ permissions:
13
+ packages: write
14
+ contents: read
15
+ id-token: write
16
+
17
+ steps:
18
+ - name: Check out the repo
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Check build version
22
+ uses: actions/github-script@v7
23
+ with:
24
+ script: |
25
+ try {
26
+ const fs = require("fs")
27
+ const jsonString = fs.readFileSync("package.json")
28
+ const package = JSON.parse(jsonString)
29
+ if (package.version !== "${{ github.ref_name }}") {
30
+ core.setFailed(`package.json version (${package.version}) not match version of release (${{ github.ref_name }})`)
31
+ }
32
+ } catch(err) {
33
+ core.setFailed(err)
34
+ }
35
+
36
+ - name: Setup Node
37
+ uses: actions/setup-node@v4
38
+ with:
39
+ node-version: 22
40
+ check-latest: 'true'
41
+ registry-url: https://npm.pkg.github.com/
42
+
43
+ - name: Enable Yarn
44
+ run: corepack enable
45
+
46
+ - name: Install dependencies
47
+ run: yarn install
48
+
49
+ - name: Publish package on GitHub
50
+ run: npm publish --provenance --access public --registry https://npm.pkg.github.com/
51
+ env:
52
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paratco/eslint-config",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "author": "Paratco",