Skip to content

Commit 220e5b7

Browse files
authored
Fix GitHub actions (#71)
* Temprary CI changes for testing * Fix yaml syntax * Remove gate for action * Fix reusable action's inputs and condition * Remove extra parens * Fix quotes * Remove event scope from input vars * Align Node engine support with dependencies * Clean up earlier CI changes * Re-enable publish action
1 parent ff3e38d commit 220e5b7

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/reusable-workflows/setup-repo/action.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,24 @@ description: Standardized workspace setup for package-template
33
inputs:
44
node-version:
55
description: NodeJS version, for actions/setup-node
6-
type: string
76
required: true
87
use-lockfile:
98
description: Whether or not to honor pnpm-lock.yaml or other lockfiles
10-
type: boolean
119
required: true
12-
default: true
10+
default: 'true'
1311

1412
runs:
1513
using: composite
1614
steps:
1715
- uses: actions/[email protected]
18-
if: ${{ github.event.inputs.node-version }} != "nvmrc"
16+
if: ${{ inputs.node-version == 'nvmrc' }}
1917
with:
20-
node-version: ${{ github.event.inputs.node-version }}
18+
node-version-file: .nvmrc
2119
registry-url: 'https://registry.npmjs.org'
2220
- uses: actions/[email protected]
23-
if: ${{ github.event.inputs.node-version }} == "nvmrc"
21+
if: ${{ inputs.node-version != 'nvmrc' }}
2422
with:
25-
node-version-file: .nvmrc
23+
node-version: ${{ inputs.node-version }}
2624
registry-url: 'https://registry.npmjs.org'
2725

2826
- uses: oven-sh/[email protected]
@@ -45,10 +43,15 @@ runs:
4543
${{ runner.os }}-pnpm-store-
4644
4745
- name: Remove lockfile to loosen dependency tree
48-
if: ${{ !github.event.inputs.use-lockfile }}
46+
if: ${{ inputs.use-lockfile == 'false' }}
4947
shell: bash
5048
run: |
5149
rm -f bun.lockb package-lock.json pnpm-lock.yaml yarn.lock
50+
- name: Keep lockfile intact
51+
if: ${{ inputs.use-lockfile != 'false' }}
52+
shell: bash
53+
run: |
54+
echo "(not removing lockfile)"
5255
5356
- name: Install dependencies
5457
shell: bash

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: [16.x, 18.x, 19.x, 20.x, 21.x]
14+
node-version: [18.x, 20.x, 21.x]
1515

1616
steps:
1717
- uses: actions/[email protected]

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"url": "https://github.com/spautz/"
1515
},
1616
"engines": {
17-
"node": "^16 || ^18 || ^19 || ^20 || ^21",
17+
"node": "^18 || ^20 || ^21",
1818
"pnpm": "^8"
1919
},
2020
"packageManager": "[email protected]",

0 commit comments

Comments
 (0)