-
Notifications
You must be signed in to change notification settings - Fork 400
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
Showing
9 changed files
with
2,451 additions
and
0 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,28 @@ | ||
name: Commands processor | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
process: | ||
name: Process command | ||
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '@client-engineering-bot ') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout release actions | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: pubnub/client-engineering-deployment-tools | ||
ref: github-actions | ||
token: ${{ secrets.GH_TOKEN }} | ||
path: ".github/.release/actions" | ||
- name: Run changelogs actions | ||
uses: "./.github/.release/actions/actions/commands" | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
listener: pingyua | ||
publisher-name: Serhii Mamontov | ||
publisher-email: parfeon@me.com |
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,49 @@ | ||
name: Automated project release | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
types: [ closed ] | ||
|
||
jobs: | ||
check-release: | ||
name: Check release required | ||
runs-on: ubuntu-latest | ||
# Uncomment this to run job only for merge (not PR close). | ||
# if: ${{ github.event.pull_request.merged }} | ||
outputs: | ||
release: ${{ steps.check.outputs.ready }} | ||
steps: | ||
- name: Checkout actions | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: pubnub/client-engineering-deployment-tools | ||
ref: github-actions | ||
token: ${{ secrets.GH_TOKEN }} | ||
path: ".github/.release/actions" | ||
- id: check | ||
name: Check pre-release completed | ||
uses: "./.github/.release/actions/actions/checks/release" | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
publish: | ||
name: Publish package | ||
runs-on: ubuntu-latest | ||
needs: check-release | ||
if: ${{ needs.check-release.outputs.release == 'true' }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
# This should be the same as the one specified for on.pull_request.branches | ||
ref: master | ||
- name: Checkout actions | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: pubnub/client-engineering-deployment-tools | ||
ref: github-actions | ||
token: ${{ secrets.GH_TOKEN }} | ||
path: ".github/.release/actions" | ||
- name: Run release actions | ||
# Intentional fail, because credentials not specified. | ||
uses: "./.github/.release/actions/actions/services/npm" |
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 @@ | ||
console.log('>>>> Hello from JS') |
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,5 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
echo "Hello from bash $(date)!" | ||
echo "Hello from bash $(date)!" > "./generated.txt" |
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,6 @@ | ||
{ | ||
"project-1": { | ||
"path": "project1", | ||
"name": "Monorepo demo" | ||
} | ||
} |
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,26 @@ | ||
{ | ||
"README.md": [ | ||
{ | ||
"pattern": "sdk\/javascript\/pubnub\\.((\\d+\\.?){2,})(.min)?\\.js$", | ||
"cleared": true | ||
} | ||
], | ||
"src/core/components/config.js": [ | ||
{ | ||
"pattern": "^\\s{2,}return '((\\d+\\.?){2,})';$", | ||
"cleared": false | ||
} | ||
], | ||
".pubnub.yml": [ | ||
{ | ||
"pattern": "^version: \"(.+)\"$", | ||
"cleared": false | ||
} | ||
], | ||
"package.json": [ | ||
{ | ||
"pattern": "^\\s{2,}\"version\": \"(.+)\",$", | ||
"cleared": true | ||
} | ||
] | ||
} |
Oops, something went wrong.