Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-lebleu committed Jan 25, 2024
1 parent 22a24c2 commit 5fd434b
Show file tree
Hide file tree
Showing 5 changed files with 637 additions and 306 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/build.yml
@@ -1,8 +1,7 @@
name: Build
on:
push:
tags:
- v*
branches: [ dev, master, hotfix/*, feature/*, release/* ]
jobs:
build:
name: Build package
Expand All @@ -14,13 +13,14 @@ jobs:
path: '**/node_modules'
key: node-modules-${{ hashfiles('**/package-lock.json') }}
- name: Github checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup node.js environment
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '14.16'
node-version: '18.19.0'
registry-url: 'https://registry.npmjs.org'
- name: Install NPM dependencies
run: npm i typescript@4.2.2 -g && npm i
run: npm i typescript@5.3.3 -g && npm i
- name: Compile Typescript files
run: tsc
- name: Execute units tests
Expand All @@ -29,14 +29,4 @@ jobs:
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./reports/coverage/lcov.info
- name: Delete unpackaged files
run: rm -rf ./.github && rm -rf ./src && rm -rf ./test && rm -f tsconfig.json && rm -f ROADMAP.md
- name: Publish package on NPM registery
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Create release
uses: konfer-be/action-create-release-from-tag@v1.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./reports/coverage/lcov.info
82 changes: 82 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,82 @@
name: Release
on:
push:
tags:
- v*
jobs:
build:
name: Build package
runs-on: ubuntu-latest
steps:
- name: Cache dependencies
uses: actions/cache@v2
with:
path: '**/node_modules'
key: node-modules-${{ hashfiles('**/package-lock.json') }}
- name: Github checkout
uses: actions/checkout@v4
- name: Setup node.js environment
uses: actions/setup-node@v4
with:
node-version: '18.19.0'
registry-url: 'https://registry.npmjs.org'
- name: Install NPM dependencies
run: npm i typescript@5.3.3 -g && npm i
- name: Compile Typescript files
run: tsc
- name: Execute units tests
run: npm run ci:coverage
- name: Publish to coveralls.io
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./reports/coverage/lcov.info
release:
name: Release on Github
runs-on: ubuntu-latest
needs: [ build ]
steps:
- name: Cache dependencies
uses: actions/cache@v2
with:
path: '**/node_modules'
key: node-modules-${{ hashfiles('**/package-lock.json') }}
- name: Github checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node.js environment
uses: actions/setup-node@v4
with:
node-version: '18.19.0'
- name: Create release
uses: konfer-be/action-create-release-from-tag@v1.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
publish:
name: Publish on NPM
runs-on: ubuntu-latest
needs: [ build ]
steps:
- name: Cache dependencies
uses: actions/cache@v2
with:
path: '**/node_modules'
key: node-modules-${{ hashfiles('**/package-lock.json') }}
- name: Github checkout
uses: actions/checkout@v4
- name: Setup node.js environment
uses: actions/setup-node@v4
with:
node-version: '18.19.0'
registry-url: 'https://registry.npmjs.org'
- name: Install NPM dependencies
run: npm i typescript@5.3.3 -g && npm i
- name: Compile Typescript files with declarations
run: tsc --declaration
- name: Delete unpackaged files
run: rm -rf ./.github && rm -rf ./src && rm -rf ./test && rm -f tsconfig.json && rm -f ROADMAP.md
- name: Publish package on NPM registery
run: npm ci & npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions README.md
@@ -1,10 +1,10 @@
![Github action workflow status](https://github.com/steve-lebleu/rsgen/actions/workflows/build.yml/badge.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/konfer-be/rsgen/badge.svg?branch=master)](https://coveralls.io/github/konfer-be/rsgen?branch=master)
![Requires.io (branch)](https://img.shields.io/requires/github/konfer-be/rsgen/master)
![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/konfer-be/rsgen)

![Known Vulnerabilities](https://snyk.io/test/github/steve-lebleu/rsgen/badge.svg)
![GitHub Release](https://img.shields.io/github/v/release/steve-lebleu/rsgenlogo=Github)
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)

Easy modular resource generation for :point_right: [Typeplate](https://github.com/konfer-be/ts-express-typeorm) project.
Naive modular resource generation for :point_right: [Typeplate](https://github.com/steve-lebleu/ts-express-typeorm) project.

## > Why ?

Expand Down

0 comments on commit 5fd434b

Please sign in to comment.