Skip to content

Commit

Permalink
Merge pull request #42 from nodecfdi/dev
Browse files Browse the repository at this point in the history
chore: version bump 1.0.1
  • Loading branch information
luffynando committed Feb 28, 2024
2 parents 0fd0383 + c992bfb commit efdbee7
Show file tree
Hide file tree
Showing 34 changed files with 3,928 additions and 2,978 deletions.
18 changes: 9 additions & 9 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
1 change: 1 addition & 0 deletions .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
26 changes: 15 additions & 11 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
root = true
# http://editorconfig.org

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80

[*.md]
trim_trailing_whitespace = false
[*.json]
insert_final_newline = unset

[*.{yml,yaml}]
indent_size = 2
[**.min.js]
indent_style = unset
insert_final_newline = unset

[MakeFile]
indent_style = space

[docker-compose.yml]
indent_size = 4
[*.md]
trim_trailing_whitespace = false
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc.json

This file was deleted.

135 changes: 68 additions & 67 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,80 +1,81 @@
name: build
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
schedule:
- cron: '0 16 * * 0' # sunday 16:00
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
schedule:
- cron: '0 16 * * 0' # sunday 16:00

jobs:
build:
name: Node unit tests
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16', '17', '18', '19', '20']
steps:
- name: Checkout
uses: actions/checkout@v3
build:
name: Node unit tests
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16', '17', '18', '19', '20']
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .pnpm-store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Cache .pnpm-store
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true
- name: Install dependencies
uses: pnpm/action-setup@v3
with:
version: 8
run_install: true

- name: Lint source
run: |
pnpm lint:check
- name: Format source
run: |
pnpm format:check
- name: Lint source
run: |
pnpm lint:check
- name: Build package
run: |
pnpm build
- name: Format source
run: |
pnpm format:check
- name: Run tests
run: |
pnpm test:run
env:
CI: true
- name: Build package
run: |
pnpm build
- name: 'Consume changesets'
if: github.event_name == 'push' && github.repository == 'nodecfdi/base-converter' && matrix.node == 16 && github.ref == 'refs/heads/main'
uses: changesets/action@v1
id: 'changesets'
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
commit: 'chore: version bump'
title: Next release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Run tests
run: |
pnpm test:run
env:
CI: true

- name: 'Generate docs'
if: steps.changesets.outputs.published == 'true'
run: pnpm gen:docs
- name: 'Consume changesets'
if: github.event_name == 'push' && github.repository == 'nodecfdi/base-converter' && matrix.node == '20' && github.ref == 'refs/heads/main'
uses: changesets/action@v1
id: 'changesets'
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
commit: 'chore: :rocket: version bump'
title: Next release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Commit docs
if: steps.changesets.outputs.published == 'true'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'docs: generate docs'
- name: 'Generate docs'
if: steps.changesets.outputs.published == 'true'
run: pnpm gen:docs

- name: Commit docs
if: steps.changesets.outputs.published == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'docs: :memo: generate docs'

0 comments on commit efdbee7

Please sign in to comment.