mirror of
https://github.com/TextPlace/CoreTextPlace.git
synced 2025-12-16 20:32:34 +00:00
refactor: Migrate project from Deno to pnpm/Node
Replace Deno configs and workflows with pnpm/Node tooling Add package.json, jsr.json, build.config.ts and pnpm-lock.yaml Remove deno.json, deno.lock, Deno build scripts and workflow Move source files into src/ and update imports and tests to vitest Add Test CI workflow and adapt publish jobs for pnpm/node Update editor settings, tasks, .gitignore and bump LICENSE year
This commit is contained in:
parent
7923680e80
commit
32534084df
26 changed files with 2132 additions and 430 deletions
16
.github/workflows/publish_npm.yml
vendored
16
.github/workflows/publish_npm.yml
vendored
|
|
@ -9,18 +9,18 @@ jobs:
|
|||
contents: read
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Deno
|
||||
uses: denoland/setup-deno@v2
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
deno-version: v2.x
|
||||
run_install: false
|
||||
# Setup .npmrc file to publish to npm
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22.x"
|
||||
node-version: "24.x"
|
||||
cache: "pnpm"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
- run: deno run -A scripts/build_npm.ts
|
||||
- run: cd npm && npm ci
|
||||
- run: cd npm && npm publish --provenance --access public
|
||||
- run: pnpm install
|
||||
- run: pnpm build
|
||||
- run: pnpm test
|
||||
- run: pnpm publish --provenance --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue