@automateinc/fleet-types 1.0.32 → 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.
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Publish Package to npmjs
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches: ["main"]
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
build:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
id-token: write
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- uses: actions/setup-node@v4
|
|
17
|
+
with:
|
|
18
|
+
node-version: '20.x'
|
|
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
|
+
|
|
33
|
+
- run: npm ci
|
|
34
|
+
|
|
35
|
+
- run: npm publish --provenance --access public
|
|
36
|
+
env:
|
|
37
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/package.json
CHANGED