@hvedinich/db 1.0.2 → 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.
@@ -8,17 +8,23 @@ on:
8
8
  jobs:
9
9
  update-version-publish-and-release:
10
10
  runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
+ id-token: write
11
14
 
12
15
  steps:
13
16
  - name: Checkout code
14
- uses: actions/checkout@v2
17
+ uses: actions/checkout@v4
15
18
 
16
19
  - name: Setup Node.js
17
- uses: actions/setup-node@v3
20
+ uses: actions/setup-node@v6
18
21
  with:
19
- node-version: 18
22
+ node-version: 24
20
23
  registry-url: 'https://registry.npmjs.org/'
21
24
 
25
+ - name: Ensure npm supports trusted publishing
26
+ run: npm i -g npm@^11.5.1
27
+
22
28
  - name: Install dependencies
23
29
  run: npm ci
24
30
 
@@ -27,22 +33,17 @@ jobs:
27
33
  npm version patch --no-git-tag-version
28
34
  git config --local user.email "rooolik@gmail.com"
29
35
  git config --local user.name "hvedinich"
30
- git commit -am "Update version to $(node -p "require('./package.json').version")"
36
+ git commit -am "Update version to $(node -p 'require("./package.json").version')"
31
37
  git push
32
38
 
33
39
  - name: Publish to npm
34
- uses: JS-DevTools/npm-publish@v3
35
- with:
36
- token: ${{ secrets.NPM_TOKEN }}
37
-
38
- - name: Read Changelog
39
- id: changelog
40
- run: echo "::set-output name=body::$(cat CHANGELOG.md)"
40
+ run: npm publish --access public
41
41
 
42
42
  - name: Get package.json version
43
43
  id: package_version
44
- run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
45
- shell: bash
44
+ run: |
45
+ VERSION="$(node -p 'require("./package.json").version')"
46
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
46
47
 
47
48
  - name: Set the version in the env
48
49
  run: echo "VERSION=${{ steps.package_version.outputs.version }}" >> $GITHUB_ENV
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hvedinich/db",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "db",
5
5
  "main": "index.js",
6
6
  "scripts": {