Skip to content

Commit 1a12488

Browse files
committed
feat: try release patch
1 parent f86063b commit 1a12488

4 files changed

Lines changed: 87 additions & 87 deletions

File tree

.github/workflows/release-release-patch.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ jobs:
3131
env:
3232
VERSION: ${{ inputs.version }}
3333

34-
gate-approval:
35-
needs: check-input-version-param
36-
runs-on: ubuntu-latest
37-
environment:
38-
name: production
39-
steps:
40-
- run: echo "Initiating approval"
34+
# gate-approval:
35+
# needs: check-input-version-param
36+
# runs-on: ubuntu-latest
37+
# environment:
38+
# name: production
39+
# steps:
40+
# - run: echo "Initiating approval"
4141

4242

4343
publish-release-npm:
44-
needs: [gate-approval, check-input-version-param]
44+
needs: [check-input-version-param]
4545
uses: ./.github/workflows/rw-perform-release-patch.yml
4646
permissions:
4747
pull-requests: write

.github/workflows/rw-git-push-rel-master-patch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Add rel chages to master
2929
uses: nick-fields/retry@v3
3030
env:
31-
TARGET_BRANCH: master
31+
TARGET_BRANCH: master2
3232
SOURCE_BRANCH: ${{ inputs.source-branch }}
3333
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB_YENKINS_ADMIN }}
3434
with:

.github/workflows/rw-perform-release-patch.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ jobs:
4545
env:
4646
VERSION: ${{ needs.publish-release.outputs.version }}
4747

48-
add-release-tag:
49-
needs: [publish-release,prepare-variables]
50-
uses: ./.github/workflows/rw-git-create-tag.yml
51-
permissions:
52-
contents: write
53-
with:
54-
source-branch: ${{ inputs.source-branch }}
55-
version: ${{ needs.prepare-variables.outputs.version }}
56-
is-latest: ${{ needs.publish-release.outputs.is-latest}}
48+
# add-release-tag:
49+
# needs: [publish-release,prepare-variables]
50+
# uses: ./.github/workflows/rw-git-create-tag.yml
51+
# permissions:
52+
# contents: write
53+
# with:
54+
# source-branch: ${{ inputs.source-branch }}
55+
# version: ${{ needs.prepare-variables.outputs.version }}
56+
# is-latest: ${{ needs.publish-release.outputs.is-latest}}
5757

5858
backport-rel-to-master:
59-
needs: [add-release-tag, prepare-variables]
59+
needs: [prepare-variables]
6060
uses: ./.github/workflows/rw-git-push-rel-master-patch.yml
6161
permissions:
6262
contents: write
@@ -65,21 +65,21 @@ jobs:
6565
with:
6666
source-branch: ${{ inputs.source-branch }}
6767

68-
slack-notification:
69-
runs-on: [ubuntu-latest]
70-
needs: [backport-rel-to-master]
71-
steps:
72-
- name: Set up message
73-
id: set-up-message
74-
run: |
75-
echo "RELEASE_MESSAGE=The changelog from the ${SOURCE_BRANCH} was ported to master branch" >> $GITHUB_ENV
76-
env:
77-
SOURCE_BRANCH: ${{ inputs.source-branch }}
78-
79-
- name: Notify to slack
80-
uses: slackapi/slack-github-action@v1.25.0
81-
with:
82-
channel-id: "#javascript-notifications"
83-
slack-message: ${{ env.RELEASE_MESSAGE }}
84-
env:
85-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
68+
# slack-notification:
69+
# runs-on: [ubuntu-latest]
70+
# needs: [backport-rel-to-master]
71+
# steps:
72+
# - name: Set up message
73+
# id: set-up-message
74+
# run: |
75+
# echo "RELEASE_MESSAGE=The changelog from the ${SOURCE_BRANCH} was ported to master branch" >> $GITHUB_ENV
76+
# env:
77+
# SOURCE_BRANCH: ${{ inputs.source-branch }}
78+
#
79+
# - name: Notify to slack
80+
# uses: slackapi/slack-github-action@v1.25.0
81+
# with:
82+
# channel-id: "#javascript-notifications"
83+
# slack-message: ${{ env.RELEASE_MESSAGE }}
84+
# env:
85+
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

.github/workflows/rw-publish-release.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -105,53 +105,53 @@ jobs:
105105
IS_LATEST: ${{ steps.check-release-is-latest.outputs.is-latest }}
106106
BUMP: ${{ inputs.bump }}
107107

108-
publish-release:
109-
needs: [bump-version,prape-release-releasde-tag]
110-
uses: ./.github/workflows/rw-publish-version.yml
111-
permissions:
112-
contents: read
113-
id-token: write
114-
secrets: inherit
115-
with:
116-
source-branch: ${{ inputs.source-branch }}
117-
release-tag: ${{ needs.prape-release-releasde-tag.outputs.release_tag }}
118-
119-
check-npm-package:
120-
outputs:
121-
verified: ${{ steps.check-npm-package.outputs.exists }}
122-
runs-on: [ubuntu-latest]
123-
needs: [bump-version,publish-release]
124-
steps:
125-
- name: Check NPM package
126-
id: check-npm-package
127-
uses: gooddata/gooddata-ui-sdk/.github/actions/check-npm-version@master
128-
with:
129-
package: "@gooddata/sdk-ui"
130-
version: ${{ needs.bump-version.outputs.version }}
131-
132-
slack-notification:
133-
runs-on: [ubuntu-latest]
134-
needs: [bump-version, check-npm-package]
135-
steps:
136-
- name: Set up message
137-
id: set-up-message
138-
run: |
139-
if [[ "$NPM_PACKAGE_VERIFIED" == "true" ]]; then
140-
echo "RELEASE_MESSAGE=The latest *${BUMP}* version, *gooddata-ui-sdk@${RELEASE_VERSION}*, has been successfully published on NPM by the user *${GITHUB_USER}*. :tada:" >> $GITHUB_ENV
141-
else
142-
NPM_PACKAGE_LINK="https://www.npmjs.com/package/@gooddata/sdk-ui/v/${RELEASE_VERSION}"
143-
SLACK_LINK="<$NPM_PACKAGE_LINK|link>"
144-
echo "RELEASE_MESSAGE=The latest *${BUMP}* version, *gooddata-ui-sdk@${RELEASE_VERSION}*, has been published on NPM by the user *${GITHUB_USER}*, but the NPM package verification failed. Check it on NPM manually at $SLACK_LINK. :warning:" >> $GITHUB_ENV
145-
fi
146-
env:
147-
RELEASE_VERSION: ${{ needs.bump-version.outputs.version }}
148-
BUMP: ${{ inputs.bump }}
149-
GITHUB_USER: ${{ github.actor }}
150-
NPM_PACKAGE_VERIFIED: ${{ needs.check-npm-package.outputs.verified }}
151-
- name: Notify to slack
152-
uses: slackapi/slack-github-action@v1.25.0
153-
with:
154-
channel-id: "#javascript-notifications"
155-
slack-message: ${{ env.RELEASE_MESSAGE }}
156-
env:
157-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
108+
# publish-release:
109+
# needs: [bump-version,prape-release-releasde-tag]
110+
# uses: ./.github/workflows/rw-publish-version.yml
111+
# permissions:
112+
# contents: read
113+
# id-token: write
114+
# secrets: inherit
115+
# with:
116+
# source-branch: ${{ inputs.source-branch }}
117+
# release-tag: ${{ needs.prape-release-releasde-tag.outputs.release_tag }}
118+
#
119+
# check-npm-package:
120+
# outputs:
121+
# verified: ${{ steps.check-npm-package.outputs.exists }}
122+
# runs-on: [ubuntu-latest]
123+
# needs: [bump-version,publish-release]
124+
# steps:
125+
# - name: Check NPM package
126+
# id: check-npm-package
127+
# uses: gooddata/gooddata-ui-sdk/.github/actions/check-npm-version@master
128+
# with:
129+
# package: "@gooddata/sdk-ui"
130+
# version: ${{ needs.bump-version.outputs.version }}
131+
#
132+
# slack-notification:
133+
# runs-on: [ubuntu-latest]
134+
# needs: [bump-version, check-npm-package]
135+
# steps:
136+
# - name: Set up message
137+
# id: set-up-message
138+
# run: |
139+
# if [[ "$NPM_PACKAGE_VERIFIED" == "true" ]]; then
140+
# echo "RELEASE_MESSAGE=The latest *${BUMP}* version, *gooddata-ui-sdk@${RELEASE_VERSION}*, has been successfully published on NPM by the user *${GITHUB_USER}*. :tada:" >> $GITHUB_ENV
141+
# else
142+
# NPM_PACKAGE_LINK="https://www.npmjs.com/package/@gooddata/sdk-ui/v/${RELEASE_VERSION}"
143+
# SLACK_LINK="<$NPM_PACKAGE_LINK|link>"
144+
# echo "RELEASE_MESSAGE=The latest *${BUMP}* version, *gooddata-ui-sdk@${RELEASE_VERSION}*, has been published on NPM by the user *${GITHUB_USER}*, but the NPM package verification failed. Check it on NPM manually at $SLACK_LINK. :warning:" >> $GITHUB_ENV
145+
# fi
146+
# env:
147+
# RELEASE_VERSION: ${{ needs.bump-version.outputs.version }}
148+
# BUMP: ${{ inputs.bump }}
149+
# GITHUB_USER: ${{ github.actor }}
150+
# NPM_PACKAGE_VERIFIED: ${{ needs.check-npm-package.outputs.verified }}
151+
# - name: Notify to slack
152+
# uses: slackapi/slack-github-action@v1.25.0
153+
# with:
154+
# channel-id: "#javascript-notifications"
155+
# slack-message: ${{ env.RELEASE_MESSAGE }}
156+
# env:
157+
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)