@sheplu/editorconfig 0.0.1 → 0.1.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,42 @@
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@v5
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: NPM install
25
+ run: |
26
+ npm install
27
+
28
+ - name: Version
29
+ if: github.event_name == 'release' && github.event.action == 'created'
30
+ run: |
31
+ VERSION=${{ github.event.release.tag_name }}
32
+ VERSION=${VERSION:1}
33
+ CURRENT_VERSION=$(npm pkg get version | tr -d '"')
34
+ if [ "$CURRENT_VERSION" != "$VERSION" ]; then
35
+ npm version $VERSION --no-git-tag-version
36
+ else
37
+ echo "Version already set to $VERSION, skipping npm version command"
38
+ fi
39
+
40
+ - name: publish
41
+ run: |
42
+ npm publish --access public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheplu/editorconfig",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {