Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix release pipeline #132

Merged
merged 38 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
745163d
wip
marikaner Sep 12, 2024
f20b18a
go
marikaner Sep 12, 2024
e4ee251
fix naming
marikaner Sep 12, 2024
f300094
dummy
marikaner Sep 12, 2024
92dec0f
fix changelog
marikaner Sep 12, 2024
4e365fb
ghj
marikaner Sep 13, 2024
5e300f9
Revert "ghj"
marikaner Sep 13, 2024
7d24a46
version
marikaner Sep 13, 2024
b38f5d0
Revert "version"
marikaner Sep 13, 2024
4ed2e3b
use bump + commit and tag
marikaner Sep 13, 2024
daf5f78
adjust runs
marikaner Sep 13, 2024
c5718b2
ls
marikaner Sep 13, 2024
ef09069
gfd
marikaner Sep 13, 2024
b40ef20
gdf
marikaner Sep 13, 2024
136a0eb
v0.2.0
Sep 13, 2024
63aff3b
Revert "v0.2.0"
marikaner Sep 13, 2024
6c8c816
v0.2.0
Sep 13, 2024
cdf634c
Revert "v0.2.0"
marikaner Sep 13, 2024
86c7226
v0.2.0
Sep 13, 2024
5df8c04
fsd
marikaner Sep 13, 2024
3bbee4f
Revert "v0.2.0"
marikaner Sep 13, 2024
0f2d84f
v0.2.0
Sep 13, 2024
7bde43a
Revert "v0.2.0"
marikaner Sep 13, 2024
7b088a0
v0.2.0
Sep 13, 2024
23f6a2a
Revert "v0.2.0"
marikaner Sep 13, 2024
cc5d45a
v0.2.0
Sep 13, 2024
2699f0c
Revert "v0.2.0"
marikaner Sep 13, 2024
499368f
v0.2.0
Sep 13, 2024
d661d76
Revert "v0.2.0"
marikaner Sep 13, 2024
060e98f
v0.2.0
Sep 13, 2024
c5187a4
adjust bump script
marikaner Sep 13, 2024
1aef457
Revert "v0.2.0"
marikaner Sep 13, 2024
c10ac44
Update .github/workflows/bump.yml
marikaner Sep 13, 2024
5892781
Update .github/workflows/bump.yml
marikaner Sep 13, 2024
b8ca7c4
Update .github/workflows/draft-release.yml
marikaner Sep 13, 2024
fd08e07
Update .github/workflows/draft-release.yml
marikaner Sep 13, 2024
39c2927
Update sample-code/src/foundation-models-openai.ts
marikaner Sep 13, 2024
2754889
Use main
marikaner Sep 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: ${{ vars.PNPM_VERSION }}
- uses: actions/setup-node@v4
Expand Down
26 changes: 11 additions & 15 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
description: Mandatory, when bumping a major version. Semver compatible version string (X.Y.Z). Must not be set for patch and minor version releases.
required: false

env:
INPUT_MAJOR_VERSION: ${{ inputs.majorVersion }}

jobs:
bump:
runs-on: ubuntu-latest
Expand All @@ -18,22 +15,21 @@ jobs:
with:
token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }}
ref: 'main'
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: ${{ vars.PNPM_VERSION }}
- uses: actions/setup-node@v4
with:
node-version: ${{ vars.DEFAULT_NODE_VERSION }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- name: Setup git
run: |
git config --global user.email "[email protected]"
git config --global user.name "ai-sdk-js"
- name: Bump version
run: pnpm changeset version
- name: Remove changelog files - (TODO) Remove this step when changeset version is fixed
run: rm -rf **/CHANGELOG.md
- name: Push
run: |
git push --follow-tags
- uses: sap/cloud-sdk-js/.github/actions/changesets-fixed-version-bump@main
name: bump version
id: bump
with:
majorVersion: ${{ inputs.majorVersion }}
- uses: sap/cloud-sdk-js/.github/actions/commit-and-tag@main
name: Commit and tag
with:
version: ${{ steps.bump.outputs.version }}
user-name: sap-ai-sdk
10 changes: 4 additions & 6 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ jobs:

- name: install and build
run: pnpm install --frozen-lockfile
# TODO: Reuse step for GA release
# - uses: sap/cloud-sdk-js/.github/actions/get-changelog@main
# name: Get Changelog
# id: get-changelog
- uses: sap/cloud-sdk-js/.github/actions/merge-changelogs@main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[q] Just for my understanding, we don't call this in the bump action because we dont want to maintain a root CHANGELOG.md?

name: merge changelogs
id: merge-changelogs
- uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
body: 'SAP Cloud SDK for AI Beta release'
# body: ${{ steps.get-changelog.outputs.changelog }}
body: ${{ steps.merge-changelogs.outputs.changelog }}
4 changes: 0 additions & 4 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# @sap-ai-sdk/core

## 0.1.0

### Minor Changes

- 4d5edc7: [New Feature] test
Loading