-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR will: - Add new git workflows to the repository - Added gulp tasks - Updated cli scripts and devDependencies in use
- Loading branch information
Showing
18 changed files
with
7,543 additions
and
4,650 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Add Inner Sourcing Label | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
inner_sourcing: | ||
uses: OutSystems/rd.github-reusable-workflows/.github/workflows/add-inner-sourcing-label.yaml@v2.0.2 | ||
with: | ||
codeowners-path: .github/CODEOWNERS | ||
secrets: inherit |
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 |
---|---|---|
@@ -0,0 +1,123 @@ | ||
name: Pre-Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
new-version: | ||
description: 'New version to be set. (1.0.1)' | ||
type: string | ||
required: true | ||
release-date: | ||
description: 'Release date. (YYYY-MM-DD)' | ||
type: string | ||
required: true | ||
new-dev-release: | ||
description: 'Set the new dev version. (1.0.1)' | ||
type: string | ||
required: false | ||
|
||
jobs: | ||
run-lint-on-dev: | ||
runs-on: ubuntu-latest | ||
|
||
if: ${{ inputs.new-version }} | ||
steps: | ||
- name: Checkout into dev | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: dev | ||
token: ${{ secrets.PAT }} | ||
|
||
- name: Install project dependencies | ||
run: npm install | ||
|
||
- name: Run build | ||
run: npm run build | ||
|
||
create-rc: | ||
needs: run-lint-on-dev | ||
runs-on: ubuntu-latest | ||
|
||
if: ${{ inputs.new-version }} | ||
steps: | ||
- name: Checkout into dev | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: dev | ||
token: ${{ secrets.PAT }} | ||
|
||
- name: Create branch rc${{ inputs.new-version }} | ||
run: | | ||
git checkout -b rc${{ inputs.new-version }} | ||
git push -u origin rc${{ inputs.new-version }} | ||
set-tag: | ||
needs: create-rc | ||
runs-on: ubuntu-latest | ||
|
||
if: ${{ inputs.new-version }} | ||
steps: | ||
- name: Checkout into rc${{ inputs.new-version }} | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: rc${{ inputs.new-version }} | ||
fetch-depth: 0 | ||
token: ${{ secrets.PAT }} | ||
|
||
- name: Set tag | ||
run: | | ||
git tag v${{ inputs.new-version }} HEAD | ||
git push origin --tags | ||
set-pre-release: | ||
needs: set-tag | ||
runs-on: ubuntu-latest | ||
|
||
if: ${{ inputs.new-version }} | ||
steps: | ||
- name: Create Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v2.0.5 | ||
with: | ||
tag_name: v${{ inputs.new-version }} | ||
name: Release of version ${{ inputs.new-version }} (${{ inputs.release-date }}) | ||
body: | | ||
### What's New | ||
- First | ||
- ... | ||
### Fixed Issues and Improvements | ||
- First | ||
- ... | ||
draft: false | ||
prerelease: true | ||
token: ${{ secrets.PAT }} | ||
|
||
update-dev-version: | ||
needs: create-rc | ||
runs-on: ubuntu-latest | ||
|
||
if: ${{ inputs.new-version && inputs.new-dev-release }} | ||
steps: | ||
- name: Checkout into dev | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: dev | ||
token: ${{ secrets.PAT }} | ||
|
||
- name: Install project dependencies | ||
run: npm install | ||
|
||
- name: Update dev version into v${{ inputs.new-dev-release }} | ||
run: | | ||
npm run gta-update-version --newVersion=${{ inputs.new-dev-release }} | ||
- name: Sign and Commit version increment to branch dev | ||
uses: ./.github/os-git-actions/signed-commit/ | ||
with: | ||
branch: dev | ||
message: 'Updated into v${{ inputs.new-dev-release }} [skip ci]' | ||
newFiles: true | ||
gpgPriv: ${{ secrets.GPG_SIGN_KEY }} | ||
gpgPassPhrase: ${{ secrets.GPG_PASSPHRASE }} |
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
new-version: | ||
description: 'Version to be released.' | ||
type: string | ||
required: true | ||
update-prerelease-into-latest: | ||
description: 'Update pre-release into latest.' | ||
type: boolean | ||
default: true | ||
delete-rc-branch: | ||
description: 'Delete rc* branch at the end of process.' | ||
type: boolean | ||
default: true | ||
|
||
jobs: | ||
run-lint-on-rc: | ||
runs-on: ubuntu-latest | ||
|
||
if: ${{ inputs.new-version }} | ||
steps: | ||
- name: Checkout into rc${{ inputs.new-version }} | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: rc${{ inputs.new-version }} | ||
token: ${{ secrets.PAT }} | ||
|
||
- name: Install project dependencies | ||
run: npm install | ||
|
||
- name: Run build | ||
run: npm run build | ||
|
||
merge-rc-into-main: | ||
needs: run-lint-on-rc | ||
runs-on: ubuntu-latest | ||
|
||
if: ${{ inputs.new-version }} | ||
steps: | ||
- name: Merge rc${{ inputs.new-version }} into main | ||
uses: everlytic/branch-merge@1.1.5 | ||
with: | ||
github_token: ${{ secrets.PAT }} | ||
source_ref: rc${{ inputs.new-version }} | ||
target_branch: 'main' | ||
commit_message_template: 'Merged rc${{ inputs.new-version }} into main. [skip ci]' | ||
|
||
set-pre-release-as-lts: | ||
needs: merge-rc-into-main | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Update v${{ inputs.new-version }} Tag Release from pre-release into latest | ||
if: ${{ inputs.new-version && inputs.update-prerelease-into-latest == true }} | ||
uses: softprops/action-gh-release@v2.0.5 | ||
with: | ||
tag_name: v${{ inputs.new-version }} | ||
prerelease: false | ||
token: ${{ secrets.PAT }} | ||
|
||
delete-rc-branch: | ||
needs: merge-rc-into-main | ||
runs-on: ubuntu-latest | ||
|
||
if: ${{ inputs.delete-rc-branch == true }} | ||
steps: | ||
- name: Checkout branch dev | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: dev | ||
|
||
- name: Delete branch rc${{ inputs.new-version }} | ||
shell: bash | ||
run: | | ||
git push origin -d rc${{ inputs.new-version }} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Validate pull request labels | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, labeled, unlabeled] | ||
|
||
jobs: | ||
check-label: | ||
uses: OutSystems/rd.github-reusable-workflows/.github/workflows/validate-pr-labels.yaml@v2.0.2 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Validate pull request title | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, edited] | ||
|
||
jobs: | ||
build: | ||
uses: OutSystems/rd.github-reusable-workflows/.github/workflows/validate-pr-title.yaml@v2.0.2 | ||
with: | ||
validate-semVer: false |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.