Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "JSONText Dev Container",
"image": "mcr.microsoft.com/devcontainers/typescript-node:4-24-trixie",
"features": {
"ghcr.io/devcontainers-extra/features/deno:1": {}
"ghcr.io/devcontainers-extra/features/deno:1": {
"version": "2.9.5"
}
},
"customizations": {
"vscode": {
Expand All @@ -15,8 +17,10 @@
"editor.codeActionsOnSave": {
"source.organizeImports": "always"
},
"deno.enablePaths": ["./tests/"],
"deno.config": "./deno.json"
"json.schemaDownload.trustedDomains": {
"https://deno.land/x/deno/cli/schemas/lint-rules.v1.json": true,
"https://deno.land/x/deno/cli/schemas/lint-tags.v1.json": true
}
}
}
}
Expand Down
42 changes: 23 additions & 19 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
name: Bump
name: Bump Version

on:
workflow_dispatch:
inputs:
version:
description: "new version(e.g., 1.2.3)"
increment:
description: "version increment"
required: true
type: string
default: patch
type: choice
options:
- patch
- minor
- major
- prepatch
- preminor
- premajor
- prerelease

permissions:
contents: write
Expand All @@ -19,24 +28,19 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v6
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
node-version: lts/*
cache: npm
registry-url: https://registry.npmjs.org/
deno-version: v2.9.5

- name: Store Version
run: |
TARGET_VERSION="${{ github.event.inputs.version }}"
TARGET_VERSION="${TARGET_VERSION#v}"
echo "VERSION=$TARGET_VERSION" >> $GITHUB_ENV

- name: Update Package Version
- name: Bump Package Versions
env:
INCREMENT: ${{ inputs.increment }}
run: |
jq ".version = \"$VERSION\"" package.json > tmp.json && mv tmp.json package.json
jq ".version = \"$VERSION\"" deno.json > tmp.json && mv tmp.json deno.json
npm install --package-lock-only --ignore-scripts
deno bump-version "$INCREMENT" --config deno.json
deno bump-version "$INCREMENT" --config package.json
VERSION="$(deno bump-version --config deno.json)"
echo "VERSION=$VERSION" >> "$GITHUB_ENV"

- name: Setup Git
run: |
Expand Down
22 changes: 9 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Publish Package

on:
release:
Expand All @@ -14,29 +14,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: npm
registry-url: https://registry.npmjs.org/

- name: Update npm to latest
run: npm install -g npm@latest

- name: Install dependencies
run: |
rm -rf node_modules package-lock.json
npm install
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.9.5

- name: Build
run: npm run build -- --mode lib
- name: Build Package
run: deno task build

- name: Publish to npm
run: npm publish --access public --provenance

- name: Publish to JSR
run: npx jsr publish --allow-dirty
run: deno publish
4 changes: 0 additions & 4 deletions CHANGELOG.md

This file was deleted.

Loading