Skip to content

Commit

Permalink
Merge pull request #15 from blastorg/feature/fastofy-5-support
Browse files Browse the repository at this point in the history
feat: upgrade project dependencies, nodejs version and fastify
  • Loading branch information
sargisshahinyan authored Dec 11, 2024
2 parents 80846c0 + f27cca6 commit 0fea4a9
Show file tree
Hide file tree
Showing 14 changed files with 7,627 additions and 27,407 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

19 changes: 12 additions & 7 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
node-version: 18
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run build
version: latest
- uses: actions/setup-node@v4
with:
cache: "pnpm"
node-version: "22"
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run test
- run: pnpm run build
74 changes: 45 additions & 29 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,36 @@ jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
node-version: 18
- run: npm ci
- run: npm run lint
- run: npm run test
version: latest
- uses: actions/setup-node@v4
with:
cache: "pnpm"
node-version: "22"
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run test

release:
if: "!startsWith(github.event.head_commit.message, '[skip ci]')"
needs: install-and-test
runs-on: ubuntu-latest
name: "Create a new release & update changelog using semantic-release"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run build
cache: "pnpm"
node-version: "22"
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- name: semantic-release
run: npx semantic-release
id: semantic-release
Expand All @@ -44,18 +54,21 @@ jobs:
runs-on: ubuntu-latest
name: "Releases package to Github Packages registry"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-tags: true
- uses: actions/setup-node@v3
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
scope: "@blastorg"
- run: npm ci
- run: npm run build
- run: npm version ${{ needs.release.outputs.new-release-version }} --no-git-tag-version --no-commit-hooks
- run: npm publish
version: latest
- uses: actions/setup-node@v4
with:
cache: "pnpm"
node-version: "22"
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm version ${{ needs.release.outputs.new-release-version }} --no-git-tag-version --no-commit-hooks
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

Expand All @@ -65,17 +78,20 @@ jobs:
runs-on: ubuntu-latest
name: "Releases package to NPM registry"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-tags: true
- uses: actions/setup-node@v3
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
scope: "@blastorg"
- run: npm ci
- run: npm run build
- run: npm version ${{ needs.release.outputs.new-release-version }} --no-git-tag-version --no-commit-hooks
- run: npm publish
cache: "pnpm"
node-version: "22"
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm version ${{ needs.release.outputs.new-release-version }} --no-git-tag-version --no-commit-hooks
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_READWRITE_TOKEN}}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v22
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Package containing AWS DynamoDB caching plugin, which you can use to use DynamoD

## Requirements

In order to install this package you need at lease Node version 18 installed on your operating system of choice.
In order to install this package you need at lease Node version 22 installed on your operating system of choice.

Then you need a DynamoDB table set up in your region of choice with the structure matching:

Expand Down
26 changes: 26 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import tseslint from "typescript-eslint";

export default tseslint.config(
tseslint.configs.eslintRecommended,
tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
rules: {
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowNullish: true,
allowBoolean: true,
allowNumber: true,
},
],
},
},
);
Loading

0 comments on commit 0fea4a9

Please sign in to comment.