Skip to content

Commit 51d0678

Browse files
authored
chore(release): v2 (#59)
2 parents c4231da + dc737a6 commit 51d0678

33 files changed

+27330
-7447
lines changed

.eslintrc.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2-
"extends": "semistandard",
3-
"env": {
4-
"browser": true
5-
}
6-
}
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/eslint-recommended",
6+
"plugin:@typescript-eslint/recommended"
7+
]
8+
}

.github/workflows/node.js.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: ["master"]
9+
pull_request:
10+
branches: ["master"]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [16.x, 18.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: "npm"
28+
- run: npm ci
29+
- run: npm run build
30+
- run: npm run coverage
31+
- name: Publish code coverage to CodeClimate
32+
uses: paambaati/[email protected]
33+
env:
34+
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}

.github/workflows/prettier.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# From https://til.simonwillison.net/github-actions/prettier-github-actions
2+
name: Check JavaScript for conformance with Prettier
3+
4+
on:
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
prettier:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repo
13+
uses: actions/checkout@v3
14+
- uses: actions/cache@v3
15+
name: Configure npm caching
16+
with:
17+
path: ~/.npm
18+
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
19+
restore-keys: |
20+
${{ runner.os }}-npm-
21+
- name: Run prettier
22+
run: |-
23+
npx prettier --check .

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- rc
6+
- stable
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: "lts/*"
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Build
23+
run: npm run build
24+
- name: Release
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
27+
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
28+
run: npx semantic-release

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
.parcel-cache
2+
coverage
13
node_modules/
24
.cache/
35
.idea/
4-
*.log
6+
*.log
7+
dist/

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dist
2+
package-lock.json
3+
coverage
4+
5+
# semantic-release
6+
CHANGELOG.md

.prettierrc.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
trailingComma = "all"
2+
semi = true
3+
useTabs = true

.releaserc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"branches": [
3+
"stable",
4+
{
5+
"name": "rc",
6+
"prerelease": true
7+
}
8+
],
9+
"plugins": [
10+
"@semantic-release/commit-analyzer",
11+
"@semantic-release/release-notes-generator",
12+
"@semantic-release/changelog",
13+
"@semantic-release/npm",
14+
"@semantic-release/git",
15+
"@semantic-release/github"
16+
]
17+
}

.vscode/settings.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"standard.semistandard": true,
3-
"standard.usePackageJson": true,
4-
"standard.autoFixOnSave": true,
5-
"javascript.validate.enable": false,
6-
"eslint.autoFixOnSave": true
7-
}
2+
"standard.semistandard": true,
3+
"standard.usePackageJson": true,
4+
"standard.autoFixOnSave": true,
5+
"javascript.validate.enable": false,
6+
"eslint.autoFixOnSave": true
7+
}

Gruntfile.js

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

0 commit comments

Comments
 (0)