node-server-engine 1.3.5 → 1.3.6

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,55 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+
12
+ permissions:
13
+ contents: write # required to push tags/commits
14
+ id-token: write
15
+
16
+ steps:
17
+ - name: Checkout code
18
+ uses: actions/checkout@v4
19
+ with:
20
+ fetch-depth: 0 # required for tagging
21
+
22
+ - name: Setup Node.js
23
+ uses: actions/setup-node@v4
24
+ with:
25
+ node-version: 20
26
+ registry-url: 'https://registry.npmjs.org/'
27
+
28
+ - name: Configure git identity
29
+ run: |
30
+ git config user.name "github-actions[bot]"
31
+ git config user.email "github-actions[bot]@users.noreply.github.com"
32
+
33
+ - name: Install dependencies
34
+ run: npm ci
35
+
36
+ - name: Lint
37
+ run: npm run lint
38
+
39
+ # - name: Test
40
+ # run: npm run test
41
+
42
+ - name: Bump version (no git tag)
43
+ run: npm version patch --no-git-tag-version
44
+
45
+ - name: Push version tag only
46
+ run: |
47
+ git push origin "v$(node -p "require('./package.json').version")"
48
+
49
+ - name: Build package
50
+ run: npm run build --if-present
51
+
52
+ - name: Publish to npm
53
+ run: npm publish
54
+ env:
55
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-server-engine",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "Framework used to develop backend services. This package ships with a lot of features to standardize the creation of services, letting you focus on the business logic.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {