Skip to content

Commit 59d3177

Browse files
authored
feat: add release please (#1366)
1 parent e8f1840 commit 59d3177

File tree

6 files changed

+76
-31
lines changed

6 files changed

+76
-31
lines changed

.github/release-please.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
manifest: true
2+
primaryBranch: main
3+
handleGHRelease: true

.github/workflows/build_test_validate.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ jobs:
2222
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node-version }}
25-
- run: .\scripts\updateVersion.ps1
26-
shell: pwsh
27-
working-directory: ./
2825
- run: npm ci
2926
- run: npm run build
3027
- run: npm run lint:eslint:loud
@@ -51,7 +48,7 @@ jobs:
5148
- run: npm run test
5249

5350
publish-npm:
54-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'auto dependabot')}}
51+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, 'chore(main)') && contains(github.event.head_commit.message, 'release')}}
5552
needs: build
5653
environment:
5754
name: production_feed

.release-please-manifest.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"packages/abstractions": "1.0.0-preview.64",
3+
"packages/authentication/azure": "1.0.0-preview.59",
4+
"packages/authentication/spfx": "1.0.0-preview.53",
5+
"packages/bundle": "1.0.0-preview.7",
6+
"packages/http/fetch": "1.0.0-preview.63",
7+
"packages/serialization/form": "1.0.0-preview.52",
8+
"packages/serialization/json": "1.0.0-preview.64",
9+
"packages/serialization/multipart": "1.0.0-preview.42",
10+
"packages/serialization/text": "1.0.0-preview.61"
11+
}
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
// x-release-please-start-version
12
export const libraryVersion = "1.0.0-preview.24";
3+
// x-release-please-end

release-please-config.json

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"exclude-paths": [
3+
".git",
4+
".idea",
5+
".github",
6+
".vscode"
7+
],
8+
"include-component-in-tag": true,
9+
"include-v-in-tag": true,
10+
"separate-pull-requests": false,
11+
"packages": {
12+
"packages/abstractions": {
13+
"name": "@microsoft/kiota-abstractions",
14+
"path": "packages/abstractions",
15+
"release-type": "node"
16+
},
17+
"packages/authentication/azure": {
18+
"name": "@microsoft/kiota-authentication-azure",
19+
"path": "packages/authentication/azure",
20+
"release-type": "node"
21+
},
22+
"packages/authentication/spfx": {
23+
"name": "@microsoft/kiota-authentication-spfx",
24+
"path": "packages/authentication/spfx",
25+
"release-type": "node"
26+
},
27+
"packages/bundle": {
28+
"name": "@microsoft/kiota-bundle",
29+
"path": "packages/bundle",
30+
"release-type": "node"
31+
},
32+
"packages/http/fetch": {
33+
"name": "@microsoft/kiota-http-fetchlibrary",
34+
"path": "packages/http/fetch",
35+
"release-type": "node"
36+
},
37+
"packages/serialization/form": {
38+
"name": "@microsoft/kiota-serialization-form",
39+
"path": "packages/serialization/form",
40+
"release-type": "node"
41+
},
42+
"packages/serialization/json": {
43+
"name": "@microsoft/kiota-serialization-json",
44+
"path": "packages/serialization/json",
45+
"release-type": "node"
46+
},
47+
"packages/serialization/multipart": {
48+
"name": "@microsoft/kiota-serialization-multipart",
49+
"path": "packages/serialization/multipart",
50+
"release-type": "node"
51+
},
52+
"packages/serialization/text": {
53+
"name": "@microsoft/kiota-serialization-text",
54+
"path": "packages/serialization/text",
55+
"release-type": "node"
56+
}
57+
},
58+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
59+
}

scripts/updateVersion.ps1

-27
This file was deleted.

0 commit comments

Comments
 (0)