From d45e98f38e247621ab7c810464fe95e6ec527dc2 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Fri, 25 Mar 2022 19:01:06 +1100 Subject: [PATCH] chore: update version and workflows --- .github/workflows/release.yml | 18 +++++++++++++----- fxmanifest.lua | 2 +- package.json | 6 +++--- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3d6ea8..8b38c4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,24 +14,32 @@ jobs: - name: Install archive tools run: sudo apt install zip - - name: Checkout source code - uses: actions/checkout@v2 + - uses: actions/checkout@v2 with: fetch-depth: 0 ref: ${{ github.ref }} + - uses: pnpm/action-setup@v2.0.1 + with: + version: 6.20.3 + + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: 16.x + cache: 'pnpm' - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Install root dependencies - run: yarn + run: pnpm install - name: Install ui dependencies - run: yarn + run: pnpm install working-directory: ui - name: Run build - run: yarn build + run: pnpm build - name: Bundle files run: | diff --git a/fxmanifest.lua b/fxmanifest.lua index cf388d3..e696334 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -3,7 +3,7 @@ game 'common' name 'oxmysql' description 'Database wrapper for FiveM utilising node-mysql2 offering improved performance and security.' -version '2.1.1' +version '2.2.0' url 'https://github.com/overextended/oxmysql' author 'overextended' diff --git a/package.json b/package.json index 347052f..3bbfb6c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oxmysql", - "version": "2.1.1", + "version": "2.2.0", "description": "FXServer to MySQL communication via node-mysql2", "repository": "git@github.com:overextended/oxmysql.git", "author": "dunak-debug <19434539+dunak-debug@users.noreply.github.com>", @@ -12,8 +12,8 @@ "lib/MySQL.d.ts" ], "scripts": { - "build": "yarn build:root && yarn build:ui", - "build:ui": "cd ./ui/ && yarn build", + "build": "pnpm build:root && pnpm build:ui", + "build:ui": "cd ./ui/ && pnpm build", "build:root": "esbuild --bundle --platform=node --target=node16.9.1 src/index.ts --outfile=dist/build.js", "watch": "esbuild --watch --bundle --platform=node --target=node16.9.1 src/index.ts --outfile=dist/build.js", "lib": "tsc --project lib/tsconfig.lib.json",