Skip to content

Commit

Permalink
update to v1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajayos committed Aug 20, 2023
1 parent 9da66a2 commit 73febdf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 53 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ permissions: write-all
jobs:
publish-release:
runs-on: ubuntu-latest
env:
yarn_cache_folder: ${{ env.HOME }}/.cache/yarn/v6

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -34,6 +31,8 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
env:
yarn_cache_folder: ${{ env.HOME }}/.cache/yarn/v6

- name: Install Dependencies
run: yarn
Expand All @@ -45,17 +44,18 @@ jobs:
if [ "$tag_version" == "$package_version" ]; then
echo "Tag version and package.json version match. Proceeding with publishing."
exit 0
else
echo "Tag version and package.json version do not match. Skipping publishing."
exit 1
fi
- name: Make Package
if: success()
if: ${{ success() }}
run: npm pack

- name: Rename and Copy Package
if: success()
if: ${{ success() }}
run: |
package_version=$(node -pe "require('./package.json').version")
mv *.tgz "${{ github.ref_name }}-${package_version}.tgz"
Expand All @@ -65,4 +65,4 @@ jobs:
with:
files: ${{ github.ref_name }}-${package_version}.tgz
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
2 changes: 1 addition & 1 deletion example.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const DB = require("./");

// Define a custom database file path
const customDBPath = "mydatabase.sql";
const customDBPath = "db/mydatabase.sql";

// Create an instance of the DB class
const nodedb = new DB(customDBPath);
Expand Down
44 changes: 0 additions & 44 deletions example.js.crswap

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ajayos/nodedb",
"version": "1.0.8",
"version": "1.0.9",
"description": "NodeDB is a simple key-value store for Node.js, built on top of SQLite.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 73febdf

Please sign in to comment.