-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use pnpm and changesets from root (#71)
* Update to use pnpm and changesets from root * Update create versioning pr workflow
- Loading branch information
Showing
9 changed files
with
1,960 additions
and
2,974 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"kubernetes-agent": patch | ||
--- | ||
|
||
Update repo to use pnpm and changesets at the root instead of in the /charts/kubernetes-agent directory |
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 |
---|---|---|
|
@@ -21,12 +21,17 @@ jobs: | |
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
cache-dependency-path: ./charts/kubernetes-agent/package-lock.json | ||
|
||
- name: npm install | ||
run: npm install | ||
working-directory: ./charts/kubernetes-agent | ||
- name: Cache .pnpm-store | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 8.15.2 | ||
run_install: true | ||
|
||
- name: Install YQ | ||
uses: dcarbone/[email protected] | ||
|
@@ -35,7 +40,6 @@ jobs: | |
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
cwd: ./charts/kubernetes-agent | ||
commit: 'Version Kubernetes Agent Chart' | ||
title: 'Version Kubernetes Agent Chart' | ||
createGitHubReleases: false | ||
|
@@ -44,15 +48,14 @@ jobs: | |
|
||
- name: 'Update version and commit Chart.yaml' | ||
run: | | ||
cd ./charts/kubernetes-agent | ||
version=$(jq -r .version package.json) | ||
version="$version" yq -i '.version = strenv(version)' Chart.yaml | ||
npm i --package-lock-only | ||
version="$version" yq -i '.version = strenv(version)' charts/kubernetes-agent/Chart.yaml | ||
pnpm i --lockfile-only | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config user.name "github-actions[bot]" | ||
git add Chart.yaml | ||
git add package-lock.json | ||
git commit -m "Update Chart.yaml" | ||
git add charts/kubernetes-agent/Chart.yaml | ||
git add pnpm-lock.json | ||
git commit -m "Update charts/kubernetes-agent/Chart.yaml" | ||
git push --set-upstream origin changeset-release/main | ||
if: steps.changesets.outputs.hasChangesets == 'true' | ||
|
||
|
Oops, something went wrong.