Skip to content

Commit 9df6d86

Browse files
authored
ci: update of files from global .github repo (#604)
1 parent 234d28e commit 9df6d86

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-12
lines changed

.github/workflows/if-nodejs-pr-testing.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ jobs:
4949
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
5050
shell: bash
5151
- if: steps.packagejson.outputs.exists == 'true'
52-
name: Check package-lock version
52+
name: Determine what node version to use
5353
# This workflow is from our own org repo and safe to reference by 'master'.
5454
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR
55+
with:
56+
node-version: ${{ vars.NODE_VERSION }}
5557
id: lockversion
5658
- if: steps.packagejson.outputs.exists == 'true'
5759
name: Setup Node.js

.github/workflows/if-nodejs-release.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ on:
1717
- alpha
1818
- next
1919

20+
permissions:
21+
contents: write # to be able to publish a GitHub release
22+
issues: write # to be able to comment on released issues
23+
pull-requests: write # to be able to comment on released pull requests
24+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
25+
2026
jobs:
2127

2228
test-nodejs:
@@ -33,9 +39,7 @@ jobs:
3339
runs-on: ${{ matrix.os }}
3440
strategy:
3541
matrix:
36-
# Using macos-13 instead of latest (macos-14) due to an issue with Puppeteer and such runner.
37-
# See: https://github.com/puppeteer/puppeteer/issues/12327 and https://github.com/asyncapi/parser-js/issues/1001
38-
os: [ubuntu-latest, macos-13, windows-latest]
42+
os: [ubuntu-latest, macos-latest, windows-latest]
3943
steps:
4044
- name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
4145
run: |
@@ -49,8 +53,11 @@ jobs:
4953
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
5054
shell: bash
5155
- if: steps.packagejson.outputs.exists == 'true'
52-
name: Check package-lock version
53-
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
56+
name: Determine what node version to use
57+
# This workflow is from our own org repo and safe to reference by 'master'.
58+
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR
59+
with:
60+
node-version: ${{ vars.NODE_VERSION }}
5461
id: lockversion
5562
- if: steps.packagejson.outputs.exists == 'true'
5663
name: Setup Node.js
@@ -95,14 +102,18 @@ jobs:
95102
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
96103
shell: bash
97104
- if: steps.packagejson.outputs.exists == 'true'
98-
name: Check package-lock version
99-
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
105+
name: Determine what node version to use
106+
# This workflow is from our own org repo and safe to reference by 'master'.
107+
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR
108+
with:
109+
node-version: ${{ vars.NODE_VERSION }}
100110
id: lockversion
101111
- if: steps.packagejson.outputs.exists == 'true'
102112
name: Setup Node.js
103113
uses: actions/setup-node@v4
104114
with:
105115
node-version: "${{ steps.lockversion.outputs.version }}"
116+
registry-url: "https://registry.npmjs.org"
106117
- if: steps.packagejson.outputs.exists == 'true'
107118
name: Install dependencies
108119
shell: bash
@@ -115,14 +126,13 @@ jobs:
115126
id: release
116127
env:
117128
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
118-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
119129
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
120130
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
121131
GIT_AUTHOR_NAME: asyncapi-bot
122132
GIT_AUTHOR_EMAIL: info@asyncapi.io
123133
GIT_COMMITTER_NAME: asyncapi-bot
124134
GIT_COMMITTER_EMAIL: info@asyncapi.io
125-
run: npx semantic-release@19.0.4
135+
run: npx semantic-release@25.0.2
126136
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
127137
name: Report workflow run status to Slack
128138
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 #using https://github.com/8398a7/action-slack/releases/tag/v3.16.2

.github/workflows/if-nodejs-version-bump.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ jobs:
2525
id: packagejson
2626
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
2727
- if: steps.packagejson.outputs.exists == 'true'
28-
name: Check package-lock version
29-
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
28+
name: Determine what node version to use
29+
# This workflow is from our own org repo and safe to reference by 'master'.
30+
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR
31+
with:
32+
node-version: ${{ vars.NODE_VERSION }}
3033
id: lockversion
3134
- if: steps.packagejson.outputs.exists == 'true'
3235
name: Setup Node.js

0 commit comments

Comments
 (0)