-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43f591e
commit 0db4de2
Showing
18 changed files
with
278 additions
and
429 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
name: Check PR title | ||
name: Check PR Title | ||
|
||
on: | ||
pull_request: | ||
branches: [ 'main', 'develop', 'hotfix/*', 'v3-hotfix/*'] | ||
branches: ['main', 'develop', 'hotfix/*'] | ||
types: ['opened', 'reopened', 'edited', 'synchronize'] | ||
|
||
jobs: | ||
check_pr_title: | ||
name: Check PR title | ||
runs-on: ubuntu-latest | ||
runs-on: [self-hosted, Linux, X64] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check PR title | ||
uses: rudderlabs/[email protected] |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Create new hotfix branch v3 | ||
name: Create a new hotfix branch | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -9,13 +9,13 @@ on: | |
|
||
jobs: | ||
create-branch: | ||
name: Create new hotfix branch v3 | ||
runs-on: ubuntu-latest | ||
name: Create a new hotfix branch | ||
runs-on: [self-hosted, Linux, X64] | ||
if: github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Create branch | ||
uses: peterjgrainger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
branch: 'v3-hotfix/${{ github.event.inputs.hotfix_name }}' | ||
branch: 'hotfix/${{ github.event.inputs.hotfix_name }}' |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Deploy to NPM v3 | ||
name: Deploy to NPM | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -16,8 +16,8 @@ env: | |
|
||
jobs: | ||
deploy-tag: | ||
name: Deploy to NPM v3 | ||
runs-on: ubuntu-latest | ||
name: Deploy to NPM | ||
runs-on: [self-hosted, Linux, X64] | ||
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/main') || github.event.pull_request.merged == true | ||
|
||
steps: | ||
|
@@ -103,13 +103,13 @@ jobs: | |
] | ||
} | ||
- name: Send message to Slack channel for v1.1 | ||
id: slackv1 | ||
- name: Send message to Slack channel for Service Worker | ||
id: slackSw | ||
uses: slackapi/[email protected] | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
PROJECT_NAME: 'JS SDK v1.1 NPM Package' | ||
NPM_PACKAGE_URL: 'https://www.npmjs.com/package/rudder-sdk-js' | ||
PROJECT_NAME: 'JS SDK Service Worker NPM Package' | ||
NPM_PACKAGE_URL: 'https://www.npmjs.com/package/@rudderstack/analytics-js-service-worker' | ||
with: | ||
channel-id: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }} | ||
payload: | | ||
|
@@ -129,20 +129,19 @@ jobs: | |
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "*Release: <${{ env.NPM_PACKAGE_URL }}|${{ env.CURRENT_VERSION_V1_VALUE }}>*\n${{ env.DATE }}" | ||
"text": "*Release: <${{ env.NPM_PACKAGE_URL }}|${{ env.CURRENT_VERSION_SW_VALUE }}>*\n${{ env.DATE }}" | ||
} | ||
} | ||
] | ||
} | ||
- name: Send message to Slack channel for Service Worker | ||
id: slackSw | ||
- name: Send message to Slack channel for v1.1 | ||
id: slackv1 | ||
uses: slackapi/[email protected] | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
PROJECT_NAME: 'JS SDK Service Worker NPM Package' | ||
NPM_PACKAGE_URL: 'https://www.npmjs.com/package/@rudderstack/analytics-js-service-worker' | ||
PROJECT_NAME: 'JS SDK v1.1 NPM Package' | ||
NPM_PACKAGE_URL: 'https://www.npmjs.com/package/rudder-sdk-js' | ||
with: | ||
channel-id: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }} | ||
payload: | | ||
|
@@ -162,7 +161,7 @@ jobs: | |
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "*Release: <${{ env.NPM_PACKAGE_URL }}|${{ env.CURRENT_VERSION_SW_VALUE }}>*\n${{ env.DATE }}" | ||
"text": "*Release: <${{ env.NPM_PACKAGE_URL }}|${{ env.CURRENT_VERSION_V1_VALUE }}>*\n${{ env.DATE }}" | ||
} | ||
} | ||
] | ||
|
Oops, something went wrong.