Skip to content

Commit cb8c3c0

Browse files
restfulheadPatrick Ruhkopf
authored andcommitted
chore: add release workflows
1 parent 2f7ffee commit cb8c3c0

File tree

5 files changed

+94
-2
lines changed

5 files changed

+94
-2
lines changed

.github/workflows/build-pr.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build pull request
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [18.x]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Setting up ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build
28+
run: npm run build:prod
29+
30+
- name: Lint
31+
run: npm run lint
32+
33+
- name: Test
34+
run: npm test
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build pull request
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [18.x]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Setting up ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build
28+
run: npm run build:prod
29+

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
The MIT License (MIT)
3+
4+
Copyright (c) 2024 Patrick Ruhkopf
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,7 @@ Then start Azurite via the `Azurite: Start` VSCode task.
6262
Build the library `npm run build` or use `npm run watch` to hotdeploy changes.
6363

6464
Start the function app by running the VScode launch configuration "Attach to Node Functions".
65+
66+
## License
67+
68+
The scripts and documentation in this project are released under the [MIT License](LICENSE)

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@restfulhead/azure-functions-nodejs-openapi-validator",
3-
"version": "1.0.0",
3+
"version": "0.0.1",
44
"description": "Azure Functions Node.js hooks for validating function invocations against an OpenAPI schema",
55
"keywords": [
66
"azure",
@@ -23,7 +23,7 @@
2323
},
2424
"scripts": {
2525
"build": "webpack --mode development",
26-
"minify": "webpack --mode production",
26+
"build:prod": "webpack --mode production",
2727
"test": "tsc -b test/tsconfig.json && rm -rf coverage && jest",
2828
"lint": "npm run lint:lib && npm run lint:test",
2929
"lint:lib": "eslint -c 'src/.eslintrc.js' './src/**/*.ts'",
@@ -61,5 +61,8 @@
6161
"webpack": "5.89.0",
6262
"webpack-cli": "5.1.4"
6363
},
64+
"files": [
65+
"dist"
66+
],
6467
"main": "./dist/azure-functions-nodejs-openapi-validator.js"
6568
}

0 commit comments

Comments
 (0)