@sheplu/eslint-config-jsdoc 0.2.0 → 0.3.0

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 @@
1
+ * @sheplu
@@ -0,0 +1,38 @@
1
+ name: Publish package
2
+ on:
3
+ release:
4
+ types: [created]
5
+
6
+ jobs:
7
+ publish:
8
+ runs-on: ubuntu-latest
9
+ environment: prod
10
+ permissions:
11
+ contents: read
12
+ id-token: write
13
+
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v6
17
+
18
+ - name: Setup Node.js
19
+ uses: actions/setup-node@v6
20
+ with:
21
+ node-version: 24
22
+ registry-url: https://registry.npmjs.org
23
+
24
+ - name: Version
25
+ if: github.event_name == 'release' && github.event.action == 'created'
26
+ run: |
27
+ VERSION=${{ github.event.release.tag_name }}
28
+ VERSION=${VERSION:1}
29
+ CURRENT_VERSION=$(npm pkg get version | tr -d '"')
30
+ if [ "$CURRENT_VERSION" != "$VERSION" ]; then
31
+ npm version $VERSION --no-git-tag-version
32
+ else
33
+ echo "Version already set to $VERSION, skipping npm version command"
34
+ fi
35
+
36
+ - name: publish
37
+ run: |
38
+ npm publish --access public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheplu/eslint-config-jsdoc",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {