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

Update version in Yarn lock file after bumping #4914

Merged
merged 1 commit into from
Nov 14, 2021
Merged
Changes from all commits
Commits
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
57 changes: 31 additions & 26 deletions .github/workflows/updateVersions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,35 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v2.4.0

- name: Get the release branch version
uses: valadas/get-release-branch-version@v1.0.1
id: branchVersion

- name: Set versions
uses: valadas/set-dnn-manifest-versions@v1.2.0
with:
version: ${{ steps.branchVersion.outputs.manifestSafeVersionString }}
skipFile: './Build/Tasks/unversionedManifests.txt'
includeSolutionInfo: true
includeIssueTemplates: true
includePackageJson: true
includeDnnReactCommon: true
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.11.0
with:
commit-message: Updates versions as per release candidate creation
title: Updates versions as per release candidate creation
body: This is a release management task and we are self-approving it for that reason.
# A comma separated list of labels.
labels: 'Type: Build/Release'
# The pull request branch name.
branch: update-versions/patch
# The branch suffix type.
branch-suffix: short-commit-hash
- name: Get the release branch version
uses: valadas/get-release-branch-version@v1.0.1
id: branchVersion

- name: Set versions
uses: valadas/set-dnn-manifest-versions@v1.2.0
with:
version: ${{ steps.branchVersion.outputs.manifestSafeVersionString }}
skipFile: "./Build/Tasks/unversionedManifests.txt"
includeSolutionInfo: true
includeIssueTemplates: true
includePackageJson: true
includeDnnReactCommon: true

- name: Update Yarn versions
shell: pwsh
run: yarn install --mode=update-lockfile --no-immutable

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.11.0
with:
commit-message: Updates versions as per release candidate creation
title: Updates versions as per release candidate creation
body: This is a release management task and we are self-approving it for that reason.
# A comma separated list of labels.
labels: "Type: Build/Release"
# The pull request branch name.
branch: update-versions/patch
# The branch suffix type.
branch-suffix: short-commit-hash