|
@@ -75,56 +75,6 @@ jobs:
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
- create-pr-for-next-rc:
|
|
|
|
|
- needs: create-github-release
|
|
|
|
|
-
|
|
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
-
|
|
|
|
|
- steps:
|
|
|
|
|
- - uses: actions/checkout@v3
|
|
|
|
|
- with:
|
|
|
|
|
- ref: v${{ needs.create-github-release.outputs.RELEASED_VERSION }}
|
|
|
|
|
-
|
|
|
|
|
- - uses: actions/setup-node@v3
|
|
|
|
|
- with:
|
|
|
|
|
- node-version: '18'
|
|
|
|
|
- cache: 'yarn'
|
|
|
|
|
- cache-dependency-path: '**/yarn.lock'
|
|
|
|
|
-
|
|
|
|
|
- - name: Install dependencies
|
|
|
|
|
- run: |
|
|
|
|
|
- yarn global add turbo
|
|
|
|
|
- yarn --frozen-lockfile
|
|
|
|
|
-
|
|
|
|
|
- - name: Bump versions for next RC
|
|
|
|
|
- run: |
|
|
|
|
|
- turbo run version --filter=@growi/app -- --prepatch
|
|
|
|
|
- turbo run version --filter=@growi/slackbot-proxy -- --prepatch
|
|
|
|
|
- yarn upgrade --scope=@growi
|
|
|
|
|
-
|
|
|
|
|
- - name: Retrieve information from package.json
|
|
|
|
|
- uses: myrotvorets/info-from-package-json-action@1.2.0
|
|
|
|
|
- id: package-json
|
|
|
|
|
-
|
|
|
|
|
- - name: Commit
|
|
|
|
|
- uses: github-actions-x/commit@v2.9
|
|
|
|
|
- with:
|
|
|
|
|
- github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
- push-branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
|
|
|
|
|
- commit-message: 'Bump version'
|
|
|
|
|
- name: GitHub Action
|
|
|
|
|
-
|
|
|
|
|
- - name: Create PR
|
|
|
|
|
- uses: repo-sync/pull-request@v2
|
|
|
|
|
- with:
|
|
|
|
|
- source_branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
|
|
|
|
|
- destination_branch: ${{ github.head_ref }}
|
|
|
|
|
- pr_title: Prepare v${{ steps.package-json.outputs.packageVersion }}
|
|
|
|
|
- pr_label: flag/exclude-from-changelog,type/prepare-next-version
|
|
|
|
|
- pr_body: "[skip ci] An automated PR generated by create-pr-for-next-rc"
|
|
|
|
|
- github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
determine-tags:
|
|
determine-tags:
|
|
|
needs: create-github-release
|
|
needs: create-github-release
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
@@ -203,7 +153,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
|
post-publish:
|
|
post-publish:
|
|
|
- needs: [create-github-release, publish-image, publish-image-ghcr]
|
|
|
|
|
|
|
+ needs: [publish-image, publish-image-ghcr]
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
@@ -230,3 +180,53 @@ jobs:
|
|
|
run: |
|
|
run: |
|
|
|
STATUS=`git status --porcelain`
|
|
STATUS=`git status --porcelain`
|
|
|
if [ -z "$STATUS" ]; then exit 0; else exit 1; fi
|
|
if [ -z "$STATUS" ]; then exit 0; else exit 1; fi
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ create-pr-for-next-rc:
|
|
|
|
|
+ needs: [publish-image, publish-image-ghcr]
|
|
|
|
|
+ runs-on: ubuntu-latest
|
|
|
|
|
+
|
|
|
|
|
+ steps:
|
|
|
|
|
+ - uses: actions/checkout@v3
|
|
|
|
|
+ with:
|
|
|
|
|
+ ref: v${{ needs.create-github-release.outputs.RELEASED_VERSION }}
|
|
|
|
|
+
|
|
|
|
|
+ - uses: actions/setup-node@v3
|
|
|
|
|
+ with:
|
|
|
|
|
+ node-version: '18'
|
|
|
|
|
+ cache: 'yarn'
|
|
|
|
|
+ cache-dependency-path: '**/yarn.lock'
|
|
|
|
|
+
|
|
|
|
|
+ - name: Install dependencies
|
|
|
|
|
+ run: |
|
|
|
|
|
+ yarn global add turbo
|
|
|
|
|
+ yarn --frozen-lockfile
|
|
|
|
|
+
|
|
|
|
|
+ - name: Bump versions for next RC
|
|
|
|
|
+ run: |
|
|
|
|
|
+ turbo run version --filter=@growi/app -- --prepatch
|
|
|
|
|
+ turbo run version --filter=@growi/slackbot-proxy -- --prepatch
|
|
|
|
|
+ yarn upgrade --scope=@growi
|
|
|
|
|
+
|
|
|
|
|
+ - name: Retrieve information from package.json
|
|
|
|
|
+ uses: myrotvorets/info-from-package-json-action@1.2.0
|
|
|
|
|
+ id: package-json
|
|
|
|
|
+
|
|
|
|
|
+ - name: Commit
|
|
|
|
|
+ uses: github-actions-x/commit@v2.9
|
|
|
|
|
+ with:
|
|
|
|
|
+ github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
+ push-branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
|
|
|
|
|
+ commit-message: 'Bump version'
|
|
|
|
|
+ name: GitHub Action
|
|
|
|
|
+
|
|
|
|
|
+ - name: Create PR
|
|
|
|
|
+ uses: repo-sync/pull-request@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ source_branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
|
|
|
|
|
+ destination_branch: ${{ github.head_ref }}
|
|
|
|
|
+ pr_title: Prepare v${{ steps.package-json.outputs.packageVersion }}
|
|
|
|
|
+ pr_label: flag/exclude-from-changelog,type/prepare-next-version
|
|
|
|
|
+ pr_body: "[skip ci] An automated PR generated by create-pr-for-next-rc"
|
|
|
|
|
+ github_token: ${{ secrets.GITHUB_TOKEN }}
|