-
Notifications
You must be signed in to change notification settings - Fork 408
Update to Node 22 and pnpm 10.5.2 and update ci actions #2425
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,66 +1,66 @@ | ||
name: "Publish" | ||
name: 'Publish' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
next_version: | ||
type: "string" | ||
description: "version (e.g. 3.4.0-alpha.0)" | ||
type: 'string' | ||
description: 'version (e.g. 3.4.0-alpha.0)' | ||
required: true | ||
skip_publish: | ||
type: "boolean" | ||
description: "mark in case only the version update shall be executed, skipping the release to npm" | ||
type: 'boolean' | ||
description: 'mark in case only the version update shall be executed, skipping the release to npm' | ||
required: true | ||
skip_push: | ||
type: "boolean" | ||
description: "mark in case the version update shall not be pushed back to the repository" | ||
type: 'boolean' | ||
description: 'mark in case the version update shall not be pushed back to the repository' | ||
required: true | ||
stable_release: | ||
type: "boolean" | ||
description: "mark in case this is a full stable release (flag is ignored in case publish is skipped)" | ||
type: 'boolean' | ||
description: 'mark in case this is a full stable release (flag is ignored in case publish is skipped)' | ||
required: true | ||
|
||
jobs: | ||
publish: | ||
permissions: | ||
contents: "write" | ||
id-token: "write" | ||
runs-on: "ubuntu-latest" | ||
contents: 'write' | ||
id-token: 'write' | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
- uses: 'actions/checkout@v4' | ||
with: | ||
token: "${{ secrets.JSONFORMS_PUBLISH_PAT }}" | ||
token: '${{ secrets.JSONFORMS_PUBLISH_PAT }}' | ||
|
||
- name: "Configure Git Credentials" | ||
- name: 'Configure Git Credentials' | ||
run: | | ||
git config user.name "jsonforms-publish[bot]" | ||
git config user.email "[email protected]" | ||
|
||
- name: "Setup node" | ||
uses: "actions/setup-node@v3" | ||
- name: 'Setup node' | ||
uses: 'actions/setup-node@v4' | ||
with: | ||
node-version: "18" | ||
registry-url: "https://registry.npmjs.org" | ||
node-version: '22' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
run_install: false | ||
|
||
- name: "Install Packages" | ||
run: "pnpm i --frozen-lockfile" | ||
- name: 'Install Packages' | ||
run: 'pnpm i --frozen-lockfile' | ||
|
||
- name: "Build" | ||
run: "pnpm run build" | ||
- name: 'Build' | ||
run: 'pnpm run build' | ||
|
||
- name: "Test" | ||
run: "pnpm run test" | ||
- name: 'Test' | ||
run: 'pnpm run test' | ||
|
||
- name: "Versioning" | ||
run: "pnpm exec lerna version ${{ github.event.inputs.next_version }} --no-push --force-publish --yes" | ||
- name: 'Versioning' | ||
run: 'pnpm exec lerna version ${{ github.event.inputs.next_version }} --no-push --force-publish --yes' | ||
|
||
- name: "Adjust PeerDependencies" | ||
- name: 'Adjust PeerDependencies' | ||
run: | | ||
cd packages/angular && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}" | ||
cd ../angular-material && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}" && pnpm pkg set peerDependencies.@jsonforms/angular="${{ github.event.inputs.next_version }}" | ||
|
@@ -72,20 +72,20 @@ jobs: | |
cd ../vue-vanilla && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}" && pnpm pkg set peerDependencies.@jsonforms/vue="${{ github.event.inputs.next_version }}" | ||
cd ../vue-vuetify && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}" && pnpm pkg set peerDependencies.@jsonforms/vue="${{ github.event.inputs.next_version }}" | ||
|
||
- name: "Tag and Commit" | ||
- name: 'Tag and Commit' | ||
run: | | ||
git add -A && git commit --amend --no-edit | ||
git tag v${{ github.event.inputs.next_version }} -f | ||
|
||
- name: "push" | ||
if: "github.event.inputs.skip_push == 'false'" | ||
- name: 'push' | ||
if: github.event.inputs.skip_push == 'false' | ||
run: | | ||
git push | ||
git push origin v${{ github.event.inputs.next_version }} | ||
|
||
- name: "Publish to npm" | ||
if: "github.event.inputs.skip_publish == 'false'" | ||
- name: 'Publish to npm' | ||
if: github.event.inputs.skip_publish == 'false' | ||
run: "pnpm publish --recursive ${{ github.event.inputs.stable_release == 'true' && ' ' || '--tag next' }}" | ||
env: | ||
NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" | ||
NPM_CONFIG_PROVENANCE: "true" | ||
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}' | ||
NPM_CONFIG_PROVENANCE: 'true' |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.