Skip to content

Commit

Permalink
feat: add release please (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkodev authored Sep 11, 2024
1 parent e8f1840 commit 59d3177
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 31 deletions.
3 changes: 3 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
manifest: true
primaryBranch: main
handleGHRelease: true
5 changes: 1 addition & 4 deletions .github/workflows/build_test_validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: .\scripts\updateVersion.ps1
shell: pwsh
working-directory: ./
- run: npm ci
- run: npm run build
- run: npm run lint:eslint:loud
Expand All @@ -51,7 +48,7 @@ jobs:
- run: npm run test

publish-npm:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'auto dependabot')}}
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')}}
needs: build
environment:
name: production_feed
Expand Down
11 changes: 11 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"packages/abstractions": "1.0.0-preview.64",
"packages/authentication/azure": "1.0.0-preview.59",
"packages/authentication/spfx": "1.0.0-preview.53",
"packages/bundle": "1.0.0-preview.7",
"packages/http/fetch": "1.0.0-preview.63",
"packages/serialization/form": "1.0.0-preview.52",
"packages/serialization/json": "1.0.0-preview.64",
"packages/serialization/multipart": "1.0.0-preview.42",
"packages/serialization/text": "1.0.0-preview.61"
}
2 changes: 2 additions & 0 deletions packages/http/fetch/src/middlewares/options/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// x-release-please-start-version
export const libraryVersion = "1.0.0-preview.24";
// x-release-please-end
59 changes: 59 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"exclude-paths": [
".git",
".idea",
".github",
".vscode"
],
"include-component-in-tag": true,
"include-v-in-tag": true,
"separate-pull-requests": false,
"packages": {
"packages/abstractions": {
"name": "@microsoft/kiota-abstractions",
"path": "packages/abstractions",
"release-type": "node"
},
"packages/authentication/azure": {
"name": "@microsoft/kiota-authentication-azure",
"path": "packages/authentication/azure",
"release-type": "node"
},
"packages/authentication/spfx": {
"name": "@microsoft/kiota-authentication-spfx",
"path": "packages/authentication/spfx",
"release-type": "node"
},
"packages/bundle": {
"name": "@microsoft/kiota-bundle",
"path": "packages/bundle",
"release-type": "node"
},
"packages/http/fetch": {
"name": "@microsoft/kiota-http-fetchlibrary",
"path": "packages/http/fetch",
"release-type": "node"
},
"packages/serialization/form": {
"name": "@microsoft/kiota-serialization-form",
"path": "packages/serialization/form",
"release-type": "node"
},
"packages/serialization/json": {
"name": "@microsoft/kiota-serialization-json",
"path": "packages/serialization/json",
"release-type": "node"
},
"packages/serialization/multipart": {
"name": "@microsoft/kiota-serialization-multipart",
"path": "packages/serialization/multipart",
"release-type": "node"
},
"packages/serialization/text": {
"name": "@microsoft/kiota-serialization-text",
"path": "packages/serialization/text",
"release-type": "node"
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}
27 changes: 0 additions & 27 deletions scripts/updateVersion.ps1

This file was deleted.

0 comments on commit 59d3177

Please sign in to comment.