@hvedinich/db 1.0.1 → 1.0.3

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,58 @@
1
+ name: Publish DB
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ update-version-publish-and-release:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
+ id-token: write
14
+
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v6
21
+ with:
22
+ node-version: 24
23
+ registry-url: 'https://registry.npmjs.org/'
24
+
25
+ - name: Ensure npm supports trusted publishing
26
+ run: npm i -g npm@^11.5.1
27
+
28
+ - name: Install dependencies
29
+ run: npm ci
30
+
31
+ - name: Update patch version
32
+ run: |
33
+ npm version patch --no-git-tag-version
34
+ git config --local user.email "rooolik@gmail.com"
35
+ git config --local user.name "hvedinich"
36
+ git commit -am "Update version to $(node -p 'require("./package.json").version')"
37
+ git push
38
+
39
+ - name: Publish to npm
40
+ run: npm publish --access public
41
+
42
+ - name: Get package.json version
43
+ id: package_version
44
+ run: |
45
+ VERSION="$(node -p 'require("./package.json").version')"
46
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
47
+
48
+ - name: Set the version in the env
49
+ run: echo "VERSION=${{ steps.package_version.outputs.version }}" >> $GITHUB_ENV
50
+
51
+ - name: Create release
52
+ env:
53
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54
+ run: |
55
+ gh release create "$VERSION" \
56
+ --repo="$GITHUB_REPOSITORY" \
57
+ --title="${GITHUB_REPOSITORY#*/} ${VERSION#v}" \
58
+ --generate-notes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hvedinich/db",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "db",
5
5
  "main": "index.js",
6
6
  "scripts": {