Skip to content

Commit

Permalink
build: bump Node LTS and actions
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Dec 5, 2024
1 parent 3fc07f0 commit fd4410a
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 27 deletions.
14 changes: 14 additions & 0 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Prepare

description: Checkout and install dependencies

runs:
using: composite
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
shell: bash
run: npm ci
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- run: npm ci
- name: Checkout
uses: actions/checkout@v4

- name: Prepare
uses: ./.github/actions/prepare

- run: npm run build

- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/tsdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install dependencies
run: npm ci
- name: Prepare
uses: ./.github/actions/prepare

- name: Generate docs
run: npm run docs
Expand Down
34 changes: 18 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.16.0",
"@types/jest": "^29.5.14",
"@types/node": "^20.11.18",
"@types/node": "^22.10.1",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"all-contributors-cli": "^6.26.1",
"esbuild": "^0.24.0",
Expand Down

0 comments on commit fd4410a

Please sign in to comment.