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
28 changes: 28 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check

on:
pull_request:
branches:
- master
workflow_call:

jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6

- uses: actions/setup-node@v6
with:
node-version: "22.x"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Test
run: npm test
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
push:
branches:
- master

permissions:
contents: write
id-token: write

jobs:
check:
uses: ./.github/workflows/check.yml

release:
needs: check
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6

- uses: actions/setup-node@v6
with:
node-version: "24.x"
registry-url: "https://registry.npmjs.org"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Bump version
uses: phips28/gh-action-bump-version@v11.0.7
with:
tag-prefix: ""

- name: Publish to NPM
run: npm publish --access public --provenance
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Formson is a FormData to JSON converter.

It supports:

- Dot notation to create nestable objects
- Dot notation to create nested objects
- Square bracket notation to create arrays
- Mixed object/array structures

Expand Down
Loading