Skip to content

Commit 9f0bc6a

Browse files
committed
CI: add Node.js 18 and persist-credentials: false
1 parent f3dcc68 commit 9f0bc6a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
node-version: [12, 14, 16]
17+
node-version: [12, 14, 16, 18]
1818

1919
steps:
2020
- uses: actions/checkout@v3
21+
with:
22+
persist-credentials: false
2123
- name: Use Node.js ${{ matrix.node-version }}
2224
uses: actions/setup-node@v3
2325
with:

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v3
17+
with:
18+
persist-credentials: false
1719
- name: Use Node.js
1820
uses: actions/setup-node@v3
1921
with:
20-
node-version: 16
22+
node-version: 18
2123
cache: npm
2224
- run: npm ci
2325
- id: publish

0 commit comments

Comments
 (0)