Skip to content

Commit

Permalink
Merge pull request #33 from mihaicm93/master
Browse files Browse the repository at this point in the history
Workflow update
  • Loading branch information
paulov-t authored Mar 14, 2024
2 parents 35ab083 + d2a920d commit 9d06a91
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest" ]
os: [ "ubuntu-latest" ,"windows-latest" ]
permissions: write-all
name: Create Release
runs-on: ${{ matrix.os }}
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.10.0'
node-version: '20.11.1'

- name: Read package.json
id: read_package_json
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sit-coop",
"version": "1.6.0",
"version": "1.6.1",
"main": "src/StayInTarkovMod.js",
"license": "MIT",
"author": "Paulov",
Expand Down
16 changes: 14 additions & 2 deletions package_release_with_server.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,20 @@ git lfs pull

Write-Output "build"
Set-Location ./project
npm install
npm run build:release

if ($IsWindows) {
npm install
npm run build:release
} else {
rm -rf node_modules
rm -f package-lock.json
npm cache clean --force

npm install
npm run build:release
}



if ($LASTEXITCODE -ne 0) {
throw "npm run build:release failed, exit code $LASTEXITCODE"
Expand Down

0 comments on commit 9d06a91

Please sign in to comment.