Skip to content

Commit

Permalink
Merge pull request #50 from nodecfdi/dev
Browse files Browse the repository at this point in the history
chore: version release 1.0.3
  • Loading branch information
luffynando committed Apr 27, 2024
2 parents a794e3e + e741a47 commit c8ebc7a
Show file tree
Hide file tree
Showing 31 changed files with 143 additions and 6,915 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto
* text=auto eol=lf

# Do not put this files on a distribution package
/.changeset/ export-ignore
Expand Down
62 changes: 15 additions & 47 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,68 +12,36 @@ on:
- cron: '0 16 * * 0' # sunday 16:00

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

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

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
tests:
uses: nodecfdi/.github/.github/workflows/tests.yml@main

- name: Install dependencies
uses: pnpm/action-setup@v3
publish:
name: Check for publish
needs: ['quality_code', 'tests']
if: github.event_name == 'push' && github.repository == 'nodecfdi/base-converter' && github.ref == 'refs/heads/main'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
version: latest
standalone: true
run_install: true

- name: Lint source
run: |
pnpm lint:check
- name: Format source
run: |
pnpm format:check
- name: Build package
run: |
pnpm build
- name: Run tests
run: |
pnpm test:run
env:
CI: true

- 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: '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
Expand Down
52 changes: 1 addition & 51 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,7 @@ on:

jobs:
tests-coverage:
name: Build code coverage
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'

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

- name: Create code coverage
run: |
pnpm test:coverage
env:
CI: true

- name: Store code coverage
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: coverage
uses: nodecfdi/.github/.github/workflows/test_coverage.yml@main

sonarcloud-secrets:
name: SonarCloud check secrets are present
Expand Down Expand Up @@ -77,23 +44,6 @@ jobs:
- name: Unshallow clone to provide blame information
run: git fetch --unshallow

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

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'

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

- name: Obtain code coverage
uses: actions/download-artifact@v4
with:
Expand Down
42 changes: 12 additions & 30 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,33 +1,15 @@
# Editor directories and files
.vscode/*
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Optional tool caches
.eslintcache
.stylelintcache

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Typescript
*.tsbuildinfo

# Testing
coverage

# Pnpm
.pnpm-debug.log

# Production files
.DS_STORE
.nyc_output
.idea
.vscode/
*.sublime-project
*.sublime-workspace
*.log
.pnpm-store
build
dist
temp
yarn.lock
shrinkwrap.yaml
package-lock.json
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package-lock=false
tag-version-prefix="v"
message="chore(release): %s :tada:"
12 changes: 5 additions & 7 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
node_modules
examples
build
dist
docs

# Ignore artifacts:
coverage/
dist/
coverage
*.html
tests/_files
.pnpm-store
pnpm-lock.yaml
*.md
67 changes: 2 additions & 65 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,3 @@
# @nodecfdi/base-converter
## [1.0.3](https://github.com/nodecfdi/base-converter/compare/v1.0.2...v1.0.3) (2024-04-27)

## 1.0.2

### Patch Changes - Update linting and build tools

- Fix renovate config for github
- Revert build tool to use tsup
- Update README with latest changes
- Update commitlint cli and config
- Update eslint, prettier, tsconfig to use standard nodecfdi config
- Update dependencies

## 1.0.1

### Patch Changes - Change build tool, linter tools

- Update dependencies
- Update docs with new theme
- Replace tsup to vite in library mode
- Update types exports for typescript
- Update CI with latest github actions
- Force to more strict rules on eslint and prettier
- Update commitlint cli and config
- Change license to 2024

## 1.0.0 - Stable Release

- First stable version
- Update config for tsup lib
- Update types exports for typescript module and commonjs
- Update to ESM
- Update dependencies
- Update CI workflow for fix pipeline to latest github changes
- Drop support to node versions < 16

## 0.1.3

### Patch Changes - Update dependencies and maintenance in general

- Fixed CI error
- Minor fixes on generate exports with types (typescript)
- Update dependencies

## 0.1.2

### Patch Changes - Change export for build process using bundlers

- Resolve exports for usage with bundlers like a vite|rollup
- Update dependencies

## 0.1.1

### Change build tool from microbundle to tsup

- change build tool
- update dependencies
- added api-extractor for check types `.d.ts`
- replace microbundle to tsup
- replace jest for vitest (added support to multiple environment tests like a node or browser env)

## 0.1.0

### Version 0.1.0

Primera versión pública disponible
## 0.1.0 (2022-07-06)
77 changes: 0 additions & 77 deletions CODE_OF_CONDUCT.md

This file was deleted.

0 comments on commit c8ebc7a

Please sign in to comment.