Skip to content

Commit 87ad4c8

Browse files
committed
refresh docs & devops
1 parent 87ad1e6 commit 87ad4c8

12 files changed

Lines changed: 33 additions & 37 deletions

File tree

.github/workflows/pr-docs-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ jobs:
1111
os:
1212
- ubuntu-24.04
1313
node-version:
14-
- '18'
14+
- '20'
1515
steps:
1616
# Install deps and cache
1717
- name: Checkout code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1919
- name: Cache version builds
2020
uses: actions/cache@v4
2121
with:
2222
key: lando-mvb-docs
2323
path: docs/.vitepress/cache/@lando/mvb
2424
save-always: true
2525
- name: Install node ${{ matrix.node-version }}
26-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@v6
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
cache: npm

.github/workflows/pr-linter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
os:
1212
- ubuntu-24.04
1313
node-version:
14-
- '18'
14+
- '20'
1515
steps:
1616
# Install deps and cache
1717
- name: Checkout code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1919
- name: Install node ${{ matrix.node-version }}
20-
uses: actions/setup-node@v4
20+
uses: actions/setup-node@v6
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323
cache: npm

.github/workflows/pr-node-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
os:
2929
- ubuntu-24.04
3030
node-version:
31-
- '18'
31+
- '20'
3232
steps:
3333
- name: Checkout code
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v6
3535
- name: Install node ${{ matrix.node-version }}
36-
uses: actions/setup-node@v4
36+
uses: actions/setup-node@v6
3737
with:
3838
node-version: ${{ matrix.node-version }}
3939
registry-url: https://registry.npmjs.org

.github/workflows/pr-unit-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
os:
1212
- windows-2022
1313
- ubuntu-24.04
14-
- macos-14
14+
- macos-15
1515
node-version:
16-
- '18'
16+
- '20'
1717
steps:
1818
# Install deps and cache
1919
- name: Checkout code
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2121
- name: Install node ${{ matrix.node-version }}
22-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@v6
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
cache: npm

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ name: Publish to NPM
33
on:
44
release:
55
types:
6-
- published
7-
- edited
6+
- created
7+
8+
permissions:
9+
id-token: write
10+
contents: read
811

912
jobs:
1013
deploy:
@@ -18,25 +21,22 @@ jobs:
1821
node-version:
1922
- '20'
2023
steps:
21-
# Install deps and cache
2224
- name: Checkout code
23-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2426
- name: Install node ${{ matrix.node-version }}
25-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@v6
2628
with:
2729
node-version: ${{ matrix.node-version }}
2830
registry-url: https://registry.npmjs.org
2931
cache: npm
3032
- name: Install dependencies
3133
run: npm clean-install --prefer-offline --frozen-lockfile
3234

33-
# Let's do tests rq just to make sure we dont push something that is fundamentally broken
3435
- name: Lint code
3536
run: npm run lint
3637
- name: Run unit tests
3738
run: npm run test:unit
3839

39-
# Prepare release.
4040
- name: Prepare release
4141
uses: lando/prepare-release-action@v3
4242
with:
@@ -45,7 +45,8 @@ jobs:
4545
sync-token: ${{ secrets.RTFM47_COAXIUM_INJECTOR }}
4646
sync-username: rtfm-47
4747

48-
# Deploy
48+
- name: Upgrade npm for trusted publishing
49+
run: npm install -g "npm@^11.5.1"
4950
- name: Publish to npm
5051
run: |
5152
VERSION=$(node -p "require('./package.json').version")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Add a `node` service to your Landofile
1515
```yaml
1616
services:
1717
myservice:
18-
type: node:16
18+
type: node:24
1919
command: npm start
2020
```
2121

docs/config.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Also note that options, in addition to the [build steps](https://docs.lando.dev/
1212
```yaml
1313
services:
1414
myservice:
15-
type: node:18
15+
type: node:24
1616
ssl: false
1717
command: tail -f /dev/null
1818
globals: []
@@ -70,7 +70,7 @@ You can also set `ssl` to a specific port. This will do the same thing as `ssl:
7070
```yaml
7171
services:
7272
myservice:
73-
type: node
73+
type: node:24
7474
port: 3000
7575
ssl: 4444
7676
```
@@ -90,7 +90,7 @@ An example of globally installing the `latest` `gulp-cli` is shown below:
9090
```yaml
9191
services:
9292
myservice:
93-
type: node
93+
type: node:24
9494
globals:
9595
gulp-cli: latest
9696
command: npm start
@@ -101,7 +101,7 @@ An example of using a [build step](https://docs.lando.dev/services/lando-3.html#
101101
```yaml
102102
services:
103103
myservice:
104-
type: node
104+
type: node:24
105105
build:
106106
- npm install
107107
command: yarn start-app

docs/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ At the very least you will need to have the following installed:
1313

1414
* [Lando 3.21.0+](https://docs.lando.dev/getting-started/installation.html) preferably installed [from source](https://docs.lando.dev/install/source.html).
1515
* [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
16-
* [Node 18](https://nodejs.org/dist/latest-v18.x/)
16+
* [Node 20](https://nodejs.org/dist/latest-v20.x/)
1717

1818
## Installation
1919

docs/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Node Lando Plugin
33
description: Add a highly configurable NodeJS service to Lando for local development with all the power of Docker and Docker Compose; comes with composer, xdebug and multiple versions for lols.
4-
next: ./config.html
54
---
65

76
# Node
@@ -13,7 +12,7 @@ You can easily add it to your Lando app by adding an entry to the [services](htt
1312
```yaml
1413
services:
1514
myservice:
16-
type: node:16
15+
type: node:24
1716
command: npm start
1817
```
1918
@@ -29,7 +28,7 @@ services:
2928
* [17](https://hub.docker.com/_/node)
3029
* [16](https://hub.docker.com/_/node)
3130
* [15](https://hub.docker.com/_/node)
32-
* **[14](https://hub.docker.com/_/node)** **(default)**
31+
* [14](https://hub.docker.com/_/node)
3332
* [custom](https://docs.lando.dev/services/lando-3.html#overrides)
3433
3534
## Legacy versions

docs/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mkdir -p ~/.lando/plugins
3030
# Install plugin
3131
# NOTE: Modify the "npm install @lando/node" line to install a particular version eg
3232
# npm install @lando/[email protected]
33-
docker run --rm -it -v ${HOME}/.lando/plugins:/plugins -w /tmp node:18-alpine sh -c \
33+
docker run --rm -it -v ${HOME}/.lando/plugins:/plugins -w /tmp node:20-alpine sh -c \
3434
"npm init -y \
3535
&& npm install @lando/node --production --flat --no-default-rc --no-lockfile --link-duplicates \
3636
&& npm install --production --cwd /tmp/node_modules/@lando/node \

0 commit comments

Comments
 (0)