Skip to content

Commit 221e474

Browse files
authored
Update CI workflows (#1111)
1 parent e63bb53 commit 221e474

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828

2929
- name: Initialize CodeQL
3030
uses: github/codeql-action/init@v2

.github/workflows/dependabot-automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Check if PR should be auto-merged
2020
uses: ahmadnassri/action-dependabot-auto-merge@v2

.github/workflows/test-and-release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ jobs:
2626
runs-on: ${{ matrix.os }}
2727
strategy:
2828
matrix:
29-
node-version: [18.x, 20.x]
29+
node-version: [18.x, 20.x, 22.x]
3030
os: [ubuntu-latest]
3131

3232
steps:
3333
- name: Checkout code
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535

3636
- name: Use Node.js ${{ matrix.node-version }}
37-
uses: actions/setup-node@v3
37+
uses: actions/setup-node@v4
3838
with:
3939
node-version: ${{ matrix.node-version }}
4040
cache: 'npm'
@@ -78,14 +78,14 @@ jobs:
7878
runs-on: ubuntu-latest
7979
strategy:
8080
matrix:
81-
node-version: [18.x]
81+
node-version: [20.x]
8282

8383
steps:
8484
- name: Checkout code
85-
uses: actions/checkout@v3
85+
uses: actions/checkout@v4
8686

8787
- name: Use Node.js ${{ matrix.node-version }}
88-
uses: actions/setup-node@v3
88+
uses: actions/setup-node@v4
8989
with:
9090
node-version: ${{ matrix.node-version }}
9191
cache: 'npm'
@@ -96,12 +96,12 @@ jobs:
9696
run: |
9797
VERSION="${{ github.ref }}"
9898
VERSION=${VERSION##*/v}
99-
echo "::set-output name=VERSION::$VERSION"
99+
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
100+
EOF=$(od -An -N6 -x /dev/urandom | tr -d ' ')
100101
BODY=$(git show -s --format=%b)
101-
BODY="${BODY//'%'/'%25'}"
102-
BODY="${BODY//$'\n'/'%0A'}"
103-
BODY="${BODY//$'\r'/'%0D'}"
104-
echo "::set-output name=BODY::$BODY"
102+
echo "BODY<<$EOF" >> $GITHUB_OUTPUT
103+
echo "$BODY" >> $GITHUB_OUTPUT
104+
echo "$EOF" >> $GITHUB_OUTPUT
105105
106106
- name: Install dependencies
107107
run: npm ci
@@ -117,12 +117,12 @@ jobs:
117117
npm publish
118118
119119
- name: Create Github Release
120-
uses: actions/create-release@v1
120+
uses: softprops/action-gh-release@v2
121121
env:
122122
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123123
with:
124124
tag_name: ${{ github.ref }}
125-
release_name: Release v${{ steps.extract_release.outputs.VERSION }}
125+
name: Release v${{ steps.extract_release.outputs.VERSION }}
126126
draft: false
127127
# Prerelease versions create prereleases on Github
128128
prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
## __WORK IN PROGRESS__
66
(at the beginning of a new line)
77
-->
8+
## __WORK IN PROGRESS__
9+
* (AlCalzone) Update CI workflows for the adapter creator (#1111)
10+
811
## 2.6.4 (2024-09-13)
912
* (AlCalzone) Pin several dependencies to older versions (#1110)
1013

0 commit comments

Comments
 (0)