Skip to content

Commit

Permalink
Merge pull request #37 from release-kit/upgrade-node
Browse files Browse the repository at this point in the history
Upgrade to node20
  • Loading branch information
risen228 authored Jun 29, 2024
2 parents 83b64d6 + 5e691d5 commit 97491c4
Show file tree
Hide file tree
Showing 11 changed files with 32,488 additions and 8,599 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/

- uses: pnpm/action-setup@v4
with:
version: 9.4.0

- name: Test and build
if: steps.cache.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
yarn build
yarn test
pnpm install --frozen-lockfile
pnpm build
pnpm test
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.DS_Store
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
node_modules
.env
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn build && git add dist
pnpm build && git add dist
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node-linker=hoisted
shamefully-hoist=true
1 change: 1 addition & 0 deletions .prototools
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm = "9.4.0"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Check out the [Outputs](#outputs) section for the full description.
- `source` (optional, defaults to `workflow-tag`)
- `workflow-tag` - use tag from the workflow event (good from releases and tag pushes)
- `latest-tag` - use the latest tag from current repository (the commit doesn't matter)
- `latest-tag` - use the latest tag from current repository (requires executing `checkout` action first)
- `string` - use the value from `string` input (can be omitted, automatically selected when `string` is defined)
- `string` (optional, defaults to empty) - a string to be parsed, required only when `source` is `string`
- `fallback` (optional, defaults to `v0.1.0`) - fallback string when a tag is not found
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ outputs:
description: 'BUILD part of the semver'

runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'

branding:
Expand Down
Loading

0 comments on commit 97491c4

Please # to comment.