generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: fix tsconfig * chore: remove d.ts.map files from packages * chore: add changesets * chore: add pr * chore: add auth token * fix tests for now * chore: fix setup * do not fail for no files * fix typo * show npmrc contents * add registry url * change version * hopefully this isn’t over engineered * fix * try private * try quotes * add declaration map * fix build * remove pr event --------- Co-authored-by: deekshas8 <[email protected]>
- Loading branch information
Showing
10 changed files
with
643 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [["@sap-ai-sdk/*"]], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: delete-dist-tag | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Dist tag to delete.' | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- name: delete dist tag | ||
run: | | ||
npm dist-tag rm @sap-ai-sdk/gen-ai-hub ${{ inputs.tag }} | ||
npm dist-tag rm @sap-ai-sdk/ai-core ${{ inputs.tag }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: publish-canary | ||
|
||
on: | ||
schedule: | ||
- cron: '0 1 * * *' | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Dist tag for the release. If you chose something different than "canary", make sure to delete it once it is not needed anymore.' | ||
type: string | ||
required: false | ||
default: 'canary' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: ${{ vars.PNPM_VERSION }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- name: install and build | ||
run: pnpm install | ||
|
||
- name: prepare canary changeset | ||
run: | | ||
rm -f .changeset/*.md || true | ||
cat <<EOT >> .changeset/canary-release-changeset.md | ||
--- | ||
'@sap-ai-sdk/ai-core': patch | ||
'@sap-ai-sdk/gen-ai-hub': patch | ||
--- | ||
Canary release | ||
EOT | ||
- name: publish | ||
run: | | ||
date=`date +%Y%m%d%H%M%S` | ||
pnpm changeset pre enter ${date} | ||
pnpm changeset version | ||
pnpm changeset pre exit | ||
pnpm changeset publish --tag ${{ inputs.tag }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,4 @@ build/Release | |
.env | ||
.env.test | ||
.env.local | ||
/pnpm-publish-summary.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.