-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/console-cancelled-requests' into alpha
- Loading branch information
Showing
11 changed files
with
288 additions
and
108 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Manual NPM publish | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version_tag: | ||
description: 'Version tag' | ||
required: true | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20.5.0' | ||
registry-url: 'https://registry.npmjs.org/' | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.inputs.version_tag }} | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: NPM publish | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} |
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 |
---|---|---|
|
@@ -3,8 +3,8 @@ name: Release | |
on: | ||
push: | ||
branches: | ||
# - main | ||
# - develop | ||
- v2 | ||
- v2-develop | ||
- alpha | ||
workflow_dispatch: | ||
|
||
|
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,28 +1,51 @@ | ||
name: Update dependent projects (ALPHA) | ||
name: Update dependent projects (alpha) | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
tag_name: | ||
description: 'Tag name' | ||
required: false | ||
prerelease: | ||
description: 'Prerelease' | ||
required: false | ||
default: 'false' | ||
|
||
env: | ||
LIBRARY_NAME: "gisce/powerp.js" | ||
|
||
jobs: | ||
update-dependents: | ||
if: github.event.release.prerelease == true && contains(github.event.release.tag_name, '-alpha.') && !contains(github.event.release.tag_name, '-rc.') | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- project: "gisce/webclient" | ||
branch: "alpha" | ||
steps: | ||
- name: Set environment variables and check condition | ||
run: | | ||
TAG_NAME="${{ github.event.release.tag_name || github.event.inputs.tag_name }}" | ||
PRERELEASE="${{ github.event.release.prerelease || github.event.inputs.prerelease }}" | ||
if [ "$PRERELEASE" == "true" ] && [[ "$TAG_NAME" != *'-rc.'* ]] && [[ "$TAG_NAME" == *'-alpha.'* ]]; then | ||
SHOULD_RUN="true" | ||
else | ||
SHOULD_RUN="false" | ||
fi | ||
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV | ||
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV | ||
echo "SHOULD_RUN=$SHOULD_RUN" >> $GITHUB_ENV | ||
- name: Check Prerelease and Tag Version | ||
if: env.SHOULD_RUN == 'true' | ||
run: echo "Running update for tag ${{ env.TAG_NAME }}" | ||
- name: Call Reusable Workflow for each project | ||
if: env.SHOULD_RUN == 'true' | ||
uses: gisce/[email protected] | ||
with: | ||
dependentProject: ${{ matrix.project }} | ||
tagName: ${{ github.event.release.tag_name }} | ||
tagName: ${{ env.TAG_NAME }} | ||
dependentProjectBranch: ${{ matrix.branch }} | ||
libraryName: ${{ env.LIBRARY_NAME }} | ||
githubToken: ${{ secrets.GH_PAT }} |
51 changes: 51 additions & 0 deletions
51
.github/workflows/update_dependent_projects_v2-develop.yaml
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,51 @@ | ||
name: Update dependent projects (v2-develop) | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
tag_name: | ||
description: 'Tag name' | ||
required: false | ||
prerelease: | ||
description: 'Prerelease' | ||
required: false | ||
default: 'false' | ||
|
||
env: | ||
LIBRARY_NAME: "gisce/powerp.js" | ||
|
||
jobs: | ||
update-dependents: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- project: "gisce/webclient" | ||
branch: "v2-develop" | ||
steps: | ||
- name: Set environment variables and check condition | ||
run: | | ||
TAG_NAME="${{ github.event.release.tag_name || github.event.inputs.tag_name }}" | ||
PRERELEASE="${{ github.event.release.prerelease || github.event.inputs.prerelease }}" | ||
if [ "$PRERELEASE" == "true" ] && [[ "$TAG_NAME" == *'-rc.'* ]] && [[ "$TAG_NAME" != *'-alpha.'* ]]; then | ||
SHOULD_RUN="true" | ||
else | ||
SHOULD_RUN="false" | ||
fi | ||
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV | ||
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV | ||
echo "SHOULD_RUN=$SHOULD_RUN" >> $GITHUB_ENV | ||
- name: Check Prerelease and Tag Version | ||
if: env.SHOULD_RUN == 'true' | ||
run: echo "Running update for tag ${{ env.TAG_NAME }}" | ||
- name: Call Reusable Workflow for each project | ||
if: env.SHOULD_RUN == 'true' | ||
uses: gisce/[email protected] | ||
with: | ||
dependentProject: ${{ matrix.project }} | ||
tagName: ${{ env.TAG_NAME }} | ||
dependentProjectBranch: ${{ matrix.branch }} | ||
libraryName: ${{ env.LIBRARY_NAME }} | ||
githubToken: ${{ secrets.GH_PAT }} |
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,51 @@ | ||
name: Update dependent projects (v2) | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
tag_name: | ||
description: 'Tag name' | ||
required: false | ||
prerelease: | ||
description: 'Prerelease' | ||
required: false | ||
default: 'false' | ||
|
||
env: | ||
LIBRARY_NAME: "gisce/powerp.js" | ||
|
||
jobs: | ||
update-dependents: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- project: "gisce/webclient" | ||
branch: "v2" | ||
steps: | ||
- name: Set environment variables and check condition | ||
run: | | ||
TAG_NAME="${{ github.event.release.tag_name || github.event.inputs.tag_name }}" | ||
PRERELEASE="${{ github.event.release.prerelease || github.event.inputs.prerelease }}" | ||
if [ "$PRERELEASE" != "true" ] && [[ "$TAG_NAME" == *'v2'* ]]; then | ||
SHOULD_RUN="true" | ||
else | ||
SHOULD_RUN="false" | ||
fi | ||
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV | ||
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV | ||
echo "SHOULD_RUN=$SHOULD_RUN" >> $GITHUB_ENV | ||
- name: Check Prerelease and Tag Version | ||
if: env.SHOULD_RUN == 'true' | ||
run: echo "Running update for tag ${{ env.TAG_NAME }}" | ||
- name: Call Reusable Workflow for each project | ||
if: env.SHOULD_RUN == 'true' | ||
uses: gisce/[email protected] | ||
with: | ||
dependentProject: ${{ matrix.project }} | ||
tagName: ${{ env.TAG_NAME }} | ||
dependentProjectBranch: ${{ matrix.branch }} | ||
libraryName: ${{ env.LIBRARY_NAME }} | ||
githubToken: ${{ secrets.GH_PAT }} |
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
Oops, something went wrong.