chore: update version and workflows

This commit is contained in:
Linden committed 2022-03-25 19:01:06 +11:00
1 parent 3582e72122
commit d45e98f38e
3 files changed
+17 -9

No files matched your search

+13 -5
View File
@@ -14,24 +14,32 @@ jobs:
- name: Install archive tools - name: Install archive tools
run: sudo apt install zip run: sudo apt install zip
- name: Checkout source code - uses: actions/checkout@v2
uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.ref }} ref: ${{ github.ref }}
- uses: pnpm/[email protected]
with:
version: 6.20.3
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'pnpm'
- name: Set env - name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Install root dependencies - name: Install root dependencies
run: yarn run: pnpm install
- name: Install ui dependencies - name: Install ui dependencies
run: yarn run: pnpm install
working-directory: ui working-directory: ui
- name: Run build - name: Run build
run: yarn build run: pnpm build
- name: Bundle files - name: Bundle files
run: | run: |
+1 -1
View File
@@ -3,7 +3,7 @@ game 'common'
name 'oxmysql' name 'oxmysql'
description 'Database wrapper for FiveM utilising node-mysql2 offering improved performance and security.' 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' url 'https://github.com/overextended/oxmysql'
author 'overextended' author 'overextended'
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "oxmysql", "name": "oxmysql",
"version": "2.1.1", "version": "2.2.0",
"description": "FXServer to MySQL communication via node-mysql2", "description": "FXServer to MySQL communication via node-mysql2",
"repository": "[email protected]:overextended/oxmysql.git", "repository": "[email protected]:overextended/oxmysql.git",
"author": "dunak-debug <[email protected]>", "author": "dunak-debug <[email protected]>",
@@ -12,8 +12,8 @@
"lib/MySQL.d.ts" "lib/MySQL.d.ts"
], ],
"scripts": { "scripts": {
"build": "yarn build:root && yarn build:ui", "build": "pnpm build:root && pnpm build:ui",
"build:ui": "cd ./ui/ && yarn build", "build:ui": "cd ./ui/ && pnpm build",
"build:root": "esbuild --bundle --platform=node --target=node16.9.1 src/index.ts --outfile=dist/build.js", "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", "watch": "esbuild --watch --bundle --platform=node --target=node16.9.1 src/index.ts --outfile=dist/build.js",
"lib": "tsc --project lib/tsconfig.lib.json", "lib": "tsc --project lib/tsconfig.lib.json",