Skip to content

Commit 9d436f5

Browse files
authored
feat: trigger release (#2382)
1 parent 5876835 commit 9d436f5

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

Lines changed: 10 additions & 6 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,8 +39,6 @@ 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
3842
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
@@ -104,7 +108,8 @@ jobs:
104108
name: Setup Node.js
105109
uses: actions/setup-node@v4
106110
with:
107-
node-version: "${{ steps.lockversion.outputs.version }}"
111+
node-version: "22.14.0"
112+
registry-url: "https://registry.npmjs.org"
108113
- if: steps.packagejson.outputs.exists == 'true'
109114
name: Install dependencies
110115
shell: bash
@@ -117,14 +122,13 @@ jobs:
117122
id: release
118123
env:
119124
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
120-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
121125
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
122126
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
123127
GIT_AUTHOR_NAME: asyncapi-bot
124128
GIT_AUTHOR_EMAIL: info@asyncapi.io
125129
GIT_COMMITTER_NAME: asyncapi-bot
126130
GIT_COMMITTER_EMAIL: info@asyncapi.io
127-
run: npx semantic-release@19.0.4
131+
run: npx semantic-release@25.0.2
128132
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
129133
name: Report workflow run status to Slack
130134
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 #using https://github.com/8398a7/action-slack/releases/tag/v3.16.2
@@ -133,4 +137,4 @@ jobs:
133137
fields: repo,action,workflow
134138
text: 'Release workflow failed in release job'
135139
env:
136-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
140+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}

0 commit comments

Comments
 (0)