Skip to content

Commit 3ec966d

Browse files
committed
Merge pull request #61 from matzkoh/github-actions
2 parents af1ce60 + f4ed996 commit 3ec966d

File tree

9 files changed

+4634
-32
lines changed

9 files changed

+4634
-32
lines changed

.circleci/config.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/actions/test/action.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: setup & test
2+
3+
description: setup & test
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- uses: actions/setup-node@v3
9+
with:
10+
node-version-file: .node-version
11+
cache: 'npm'
12+
13+
- shell: bash
14+
run: npm ci
15+
16+
- shell: bash
17+
run: npm test
18+
19+
- uses: codecov/codecov-action@v3

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: ./.github/actions/test
14+
- run: npx semantic-release
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: test
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: ./.github/actions/test

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.13.0

cspell.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"version": "0.2",
3+
"dictionaries": [],
4+
"words": ["packagejson"]
5+
}

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const { parsers } = requireSafe('prettier/parser-babel') || requireSafe('prettie
33
const sortPackageJson = require('sort-package-json')
44
const parser = parsers['json-stringify']
55

6+
/** @type {import('prettier').Plugin['parsers']} */
67
exports.parsers = {
78
'json-stringify': {
89
...parser,

0 commit comments

Comments
 (0)