@automateinc/fleet-types 1.0.33 → 1.0.34

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.
@@ -2,20 +2,36 @@ name: Publish Package to npmjs
2
2
  on:
3
3
  push:
4
4
  branches: ["main"]
5
+
5
6
  jobs:
6
7
  build:
7
8
  runs-on: ubuntu-latest
8
9
  permissions:
9
10
  contents: read
10
11
  id-token: write
12
+
11
13
  steps:
12
14
  - uses: actions/checkout@v4
13
- # Setup .npmrc file to publish to npm
15
+
14
16
  - uses: actions/setup-node@v4
15
17
  with:
16
18
  node-version: '20.x'
17
19
  registry-url: 'https://registry.npmjs.org'
20
+
21
+ - run: npm install -g semver
22
+
23
+ - name: Bump version temporarily
24
+ run: |
25
+ PACKAGE_NAME=$(jq -r .name package.json)
26
+ LATEST_VERSION=$(npm view "$PACKAGE_NAME" version || echo "0.0.0")
27
+ echo "Latest version: $LATEST_VERSION"
28
+ NEW_VERSION=$(semver -i patch "$LATEST_VERSION")
29
+ echo "Temporary bump to: $NEW_VERSION"
30
+ jq ".version = \"$NEW_VERSION\"" package.json > package.tmp.json
31
+ mv package.tmp.json package.json
32
+
18
33
  - run: npm ci
34
+
19
35
  - run: npm publish --provenance --access public
20
36
  env:
21
37
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@automateinc/fleet-types",
3
3
  "private": false,
4
- "version": "1.0.33",
4
+ "version": "1.0.34",
5
5
  "description": "Reusable TypeScript types and interfaces for Fleet API.",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",