-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-glee-default
- Loading branch information
Showing
9 changed files
with
54,879 additions
and
10,624 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 |
---|---|---|
|
@@ -26,9 +26,10 @@ jobs: | |
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Bumping latest version of this package in other repositories | ||
uses: derberg/npm-dependency-manager-for-your-github-org@3df56be95bcaa5c76a9c9a4af863ab151545b649 # using v6.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v6 | ||
uses: derberg/npm-dependency-manager-for-your-github-org@1eafd3bf3974f21d395c1abac855cb04b295d570 # using v6.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v6 | ||
with: | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
committer_username: asyncapi-bot | ||
committer_email: [email protected] | ||
repos_to_ignore: spec,bindings,saunter | ||
custom_id: "dependency update from asyncapi bot" |
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
shell: bash | ||
- if: steps.should_run.outputs.shouldrun == 'true' | ||
name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -56,29 +57,23 @@ jobs: | |
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ steps.lockversion.outputs.version }}" | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
- if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest' | ||
#npm cli 10 is buggy because of some cache issue | ||
name: Install npm cli 8 | ||
shell: bash | ||
run: npm install -g [email protected] | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Install dependencies | ||
id: first-installation | ||
shell: bash | ||
run: npm ci | ||
continue-on-error: true | ||
- if: steps.first-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' | ||
name: Clear NPM cache and install deps again | ||
id: second-installation | ||
run: | | ||
npm cache clean --force | ||
npm ci | ||
continue-on-error: true | ||
- if: steps.second-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' | ||
name: Install without cache | ||
run: npm ci --no-cache | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Test | ||
run: npm test --if-present | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
- if: steps.packagejson.outputs.exists == 'true' && matrix.os == 'ubuntu-latest' | ||
#linting should run just one and not on all possible operating systems | ||
name: Run linter | ||
run: npm run lint --if-present | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Run release assets generation to make sure PR does not break it | ||
shell: bash | ||
run: npm run generate:assets --if-present |
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 |
---|---|---|
|
@@ -38,6 +38,7 @@ jobs: | |
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
shell: bash | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Check if Node.js project and has package.json | ||
|
@@ -53,23 +54,15 @@ jobs: | |
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ steps.lockversion.outputs.version }}" | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
- if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest' | ||
name: Install npm cli 8 | ||
shell: bash | ||
#npm cli 10 is buggy because of some cache issues | ||
run: npm install -g [email protected] | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Install dependencies | ||
id: first-installation | ||
shell: bash | ||
run: npm ci | ||
continue-on-error: true | ||
- if: steps.first-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' | ||
name: Clear NPM cache and install deps again | ||
id: second-installation | ||
run: | | ||
npm cache clean --force | ||
npm ci | ||
continue-on-error: true | ||
- if: steps.second-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' | ||
name: Install without cache | ||
run: npm ci --no-cache | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Run test | ||
run: npm test --if-present | ||
|
@@ -93,7 +86,7 @@ jobs: | |
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Check if Node.js project and has package.json | ||
id: packagejson | ||
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT | ||
|
@@ -104,26 +97,13 @@ jobs: | |
id: lockversion | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ steps.lockversion.outputs.version }}" | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Install dependencies | ||
id: first-installation | ||
shell: bash | ||
run: npm ci | ||
continue-on-error: true | ||
- if: steps.first-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' | ||
name: Clear NPM cache and install deps again | ||
id: second-installation | ||
run: | | ||
npm cache clean --force | ||
npm ci | ||
continue-on-error: true | ||
- if: steps.second-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' | ||
name: Install without cache | ||
run: npm ci --no-cache | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Add plugin for conventional commits for semantic-release | ||
run: npm install --save-dev [email protected] | ||
|
@@ -148,4 +128,4 @@ jobs: | |
fields: repo,action,workflow | ||
text: 'Release workflow failed in release job' | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }} |
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 |
---|---|---|
|
@@ -41,16 +41,14 @@ jobs: | |
extension: x64.pkg | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Check package-lock version | ||
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master | ||
id: lockversion | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ steps.lockversion.outputs.version }}" | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
- name: Get version from package.json | ||
uses: actions/github-script@v6 | ||
id: extractver | ||
|
@@ -59,11 +57,18 @@ jobs: | |
const packageJson = require('./package.json'); | ||
const packageJsonVersion = packageJson.version; | ||
core.setOutput('version', packageJsonVersion); | ||
- if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest' | ||
#npm cli 10 is buggy because of some cache issue | ||
name: Install npm cli 8 | ||
shell: bash | ||
run: npm install -g [email protected] | ||
- name: Install dependencies | ||
run: npm install | ||
run: npm ci | ||
- name: Build project | ||
shell: bash | ||
run: npm run prepublishOnly | ||
- name: Assets generation | ||
shell: bash | ||
run: npm run ${{ matrix.npm_script }} | ||
- name: Update release | ||
uses: softprops/action-gh-release@v1 | ||
|
Oops, something went wrong.