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+
2026jobs :
2127
2228 test-nodejs :
4753 run : test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
4854 shell : bash
4955 - if : steps.packagejson.outputs.exists == 'true'
50- name : Check package-lock version
56+ name : Determine what node version to use
5157 # This workflow is from our own org repo and safe to reference by 'master'.
5258 uses : asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR
59+ with :
60+ node-version : ${{ vars.NODE_VERSION }}
5361 id : lockversion
5462 - if : steps.packagejson.outputs.exists == 'true'
5563 name : Setup Node.js
@@ -94,15 +102,18 @@ jobs:
94102 run : test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
95103 shell : bash
96104 - if : steps.packagejson.outputs.exists == 'true'
97- name : Check package-lock version
105+ name : Determine what node version to use
98106 # This workflow is from our own org repo and safe to reference by 'master'.
99107 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
0 commit comments