@grunnverk/kilde 1.5.8 → 1.5.9-dev.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.
@@ -1,6 +1,3 @@
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://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
-
4
1
  name: Node.js Package (npm)
5
2
 
6
3
  env:
@@ -9,6 +6,9 @@ env:
9
6
  on:
10
7
  release:
11
8
  types: [created]
9
+ push:
10
+ branches:
11
+ - working
12
12
 
13
13
  permissions:
14
14
  contents: write
@@ -16,29 +16,7 @@ permissions:
16
16
  id-token: write
17
17
 
18
18
  jobs:
19
- build:
20
- runs-on: ubuntu-latest
21
- timeout-minutes: 15
22
- steps:
23
- - uses: actions/checkout@v4
24
- - uses: actions/setup-node@v4
25
- with:
26
- node-version: 24
27
- - name: Install dependencies
28
- run: |
29
- # Use public npm registry (package-lock.json is gitignored)
30
- npm config set registry https://registry.npmjs.org/
31
- # Clean install to ensure platform-specific optional deps (rollup native bindings) are resolved correctly
32
- # See: https://github.com/npm/cli/issues/4828
33
- rm -rf node_modules package-lock.json
34
- npm install --force
35
- timeout-minutes: 10
36
- - run: npm run lint
37
- - run: npm run build
38
- - run: npm run test
39
-
40
19
  publish-npm:
41
- needs: build
42
20
  runs-on: ubuntu-latest
43
21
  timeout-minutes: 15
44
22
  steps:
@@ -47,15 +25,28 @@ jobs:
47
25
  with:
48
26
  node-version: 24
49
27
  registry-url: https://registry.npmjs.org/
50
- - name: Update npm
51
- run: npm install -g npm@latest
52
- - name: Install dependencies
53
- run: |
54
- # Use public npm registry (package-lock.json is gitignored)
55
- npm config set registry https://registry.npmjs.org/
56
- # Clean install to ensure platform-specific optional deps (rollup native bindings) are resolved correctly
57
- # See: https://github.com/npm/cli/issues/4828
58
- rm -rf node_modules package-lock.json
59
- npm install --force
28
+ - run: npm install -g npm@latest
29
+ - run: npm install --verbose --foreground-scripts
60
30
  timeout-minutes: 10
61
- - run: npm publish --access public
31
+ - name: Determine npm tag and publish strategy
32
+ id: npm-tag
33
+ run: |
34
+ VERSION=$(node -p "require('./package.json').version")
35
+ IS_RELEASE="${{ github.event_name == 'release' }}"
36
+
37
+ if [[ "$VERSION" == *"-"* ]]; then
38
+ echo "tag=dev" >> $GITHUB_OUTPUT
39
+ echo "should_publish=true" >> $GITHUB_OUTPUT
40
+ else
41
+ echo "tag=latest" >> $GITHUB_OUTPUT
42
+ # Only publish production versions on release events
43
+ if [[ "$IS_RELEASE" == "true" ]]; then
44
+ echo "should_publish=true" >> $GITHUB_OUTPUT
45
+ else
46
+ echo "should_publish=false" >> $GITHUB_OUTPUT
47
+ echo "⚠️ Skipping publish: Production version detected on non-release push"
48
+ fi
49
+ fi
50
+ - name: Publish to npm
51
+ if: steps.npm-tag.outputs.should_publish == 'true'
52
+ run: npm publish --access public --tag ${{ steps.npm-tag.outputs.tag }}
package/dist/constants.js CHANGED
@@ -3,9 +3,9 @@ import path from 'path';
3
3
 
4
4
  /**
5
5
  * Version and build information (replaced at build time)
6
- */ const VERSION = '1.5.8 (HEAD/506adf3 T:v1.5.8 2026-01-30 23:31:36 -0800) linux x64 v24.13.0';
6
+ */ const VERSION = '1.5.9-dev.0 (working/fb86ae8 2026-01-31 11:55:31 -0800) linux x64 v24.13.0';
7
7
  const BUILD_HOSTNAME = 'runnervmkj6or';
8
- const BUILD_TIMESTAMP = '2026-01-31T07:33:24.641Z';
8
+ const BUILD_TIMESTAMP = '2026-01-31T19:59:36.334Z';
9
9
  /**
10
10
  * Program identification
11
11
  */ const PROGRAM_NAME = 'kilde';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grunnverk/kilde",
3
- "version": "1.5.8",
3
+ "version": "1.5.9-dev.0",
4
4
  "description": "Universal Git Automation Tool - AI-powered commit and release messages for any git repository",
5
5
  "main": "dist/main.js",
6
6
  "type": "module",