Skip to content

Commit 5336d15

Browse files
committed
Update action versions & replace release action
Updated the versions of the used actions (where I noticed possible). Also replaced actions/create-release with softprops/action-gh-release because the former was archived in 2021. Based on a single suggestion I saw somewhere online, it's best to --ignore-scripts with npm ci. So I did that here too.
1 parent dcb9154 commit 5336d15

File tree

3 files changed

+24
-17
lines changed

3 files changed

+24
-17
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ jobs:
1010
ci:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- run: |
1515
docker pull ghcr.io/osgeo/gdal:ubuntu-small-latest ;
1616
docker run -i --rm -v `pwd`/test/data:/data ghcr.io/osgeo/gdal:ubuntu-small-latest bash -c "apt-get update && apt-get -y install imagemagick libtiff-tools wget && cd /data && ./setup_data.sh"
1717
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@v4
1919
with:
20-
node-version: 20.x
21-
- run: npm ci
20+
node-version: 22.x
21+
- run: npm ci --ignore-scripts
22+
- run: npm rebuild
2223
- run: npm run build
2324
- run: npm test
2425
- name: action-slack

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v2
14-
- name: Use Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v1
13+
uses: actions/checkout@v4
14+
- name: Use Node.js 22.x
15+
uses: actions/setup-node@v4
1616
with:
17-
node-version: ${{ matrix.node-version }}
17+
node-version: 22.x
1818
- run: npm ci
1919
- run: npm run docs
2020
- name: Deploy pages

.github/workflows/release.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,31 @@ on:
77

88
jobs:
99
release:
10-
name: Create Release
10+
name: Create release
1111
runs-on: ubuntu-latest
12+
13+
permissions:
14+
# required for softprops/action-gh-release
15+
contents: write
16+
1217
steps:
1318
- name: Checkout code
14-
uses: actions/checkout@v2
15-
- run: npm install
19+
uses: actions/checkout@v4
20+
- run: npm ci --ignore-scripts
21+
# npm run prepare runs the build step for publish and pack
22+
- run: npm rebuild && npm run prepare
1623
- run: npm run docs
17-
- uses: JS-DevTools/npm-publish@v1
24+
- uses: JS-DevTools/npm-publish@v3
1825
with:
1926
token: ${{ secrets.NPM_TOKEN }}
20-
- name: Create Release
27+
- name: Create release
2128
id: create_release
22-
uses: actions/create-release@v1
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
uses: softprops/action-gh-release@v2
2530
with:
2631
tag_name: ${{ github.ref }}
27-
release_name: Release ${{ github.ref }}
32+
name: Release ${{ github.ref_name }}
2833
body: ""
34+
generate_release_notes: true
2935
draft: true
3036
prerelease: false
3137
- name: action-slack

0 commit comments

Comments
 (0)