Skip to content

Commit

Permalink
Run action using Node v20
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis committed Feb 8, 2024
1 parent a21848e commit 8bb3573
Show file tree
Hide file tree
Showing 6 changed files with 290 additions and 182 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-chicken-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'changesets-snapshot': patch
---

Run action using Node v20
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ jobs:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Node.js 16.x
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Changesets Snapshot
description: A GitHub action to publish snapshot releases with Changesets
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
inputs:
pre-publish:
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@actions/github": "^5.1.1",
"@antfu/ni": "^0.18.8",
"@antfu/ni": "^0.21.12",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0",
"@manypkg/get-packages": "^1.1.3",
"@types/node": "^16.18.11",
"@types/node": "^20.11.16",
"prettier": "^2.8.1",
"resolve-from": "^5.0.0",
"skuba": "5.1.0",
"tsup": "^6.5.0"
"tsup": "^8.0.1"
},
"volta": {
"node": "16.19.0",
"node": "20.11.0",
"yarn": "1.22.19"
},
"skuba": {
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['src/index.ts'],
target: 'node16',
target: 'node20',
clean: true,
});
Loading

0 comments on commit 8bb3573

Please sign in to comment.