ci(moon-cycle): enable corepack before setup-node, emit d.mts

This commit is contained in:
Aric Camarata 2026-05-29 20:06:53 -04:00
parent 0284076ea0
commit 866ea69ce2
2 changed files with 11 additions and 10 deletions

View file

@ -15,12 +15,12 @@ jobs:
node: [20, 22, 24] node: [20, 22, 24]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
cache: pnpm cache: pnpm
- name: Enable corepack
run: corepack enable
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- run: pnpm build - run: pnpm build
- run: node --test test.mjs - run: node --test test.mjs
@ -31,12 +31,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 24 node-version: 24
cache: pnpm cache: pnpm
- name: Enable corepack
run: corepack enable
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- run: pnpm run lint - run: pnpm run lint
- run: pnpm run format:check - run: pnpm run format:check
@ -46,12 +46,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 24 node-version: 24
cache: pnpm cache: pnpm
- name: Enable corepack
run: corepack enable
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- run: pnpm run typecheck - run: pnpm run typecheck
@ -60,12 +60,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 24 node-version: 24
cache: pnpm cache: pnpm
- name: Enable corepack
run: corepack enable
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- run: pnpm build - run: pnpm build
- name: Verify pack contents - name: Verify pack contents

View file

@ -1,7 +1,7 @@
{ {
"name": "moon-cycle", "name": "moon-cycle",
"version": "2.0.0", "version": "2.0.0",
"description": "Maps any date to NASA moon phase imagery via synodic and calendar-year cycles. Lightweight npm package \u2014 images served via CDN or self-hosted from the GitHub repository.", "description": "Maps any date to NASA moon phase imagery via synodic and calendar-year cycles. Lightweight npm package images served via CDN or self-hosted from the GitHub repository.",
"author": "Aric Camarata", "author": "Aric Camarata",
"license": "MIT", "license": "MIT",
"main": "./dist/index.cjs", "main": "./dist/index.cjs",
@ -31,7 +31,8 @@
"pretest": "tsup", "pretest": "tsup",
"test": "node --test test.mjs && node --test test-cjs.cjs", "test": "node --test test.mjs && node --test test-cjs.cjs",
"prepublishOnly": "tsup", "prepublishOnly": "tsup",
"coverage": "c8 --reporter=lcov --reporter=text node --test" "coverage": "c8 --reporter=lcov --reporter=text node --test",
"postbuild": "cp dist/index.d.ts dist/index.d.mts"
}, },
"engines": { "engines": {
"node": ">=20" "node": ">=20"