Skip to content

Commit

Permalink
Improve DX and update package.json dependencies (#24)
Browse files Browse the repository at this point in the history
* chore: Update package.json dependencies and description

* chore: format files and enable format on save

* chore: Update package.json name to "OpenFusionClient"

* chore: Update package.json description to "OpenFusionClient"

* chore: Update package name and lockfile for OpenFusionClient
  • Loading branch information
hichemfantar authored Jul 15, 2024
1 parent d52e149 commit 451cb4a
Show file tree
Hide file tree
Showing 8 changed files with 356 additions and 424 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
name: Publish Build

on:
push:
branches: [ "main" ]
tags: '*'
push:
branches: ["main"]
tags: "*"

permissions:
contents: write
contents: write

jobs:
build:
runs-on: windows-2022
build:
runs-on: windows-2022

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Pack into zip and create installer
run: npm run dist
- name: Upload Artifacts
uses: actions/upload-artifact@master
with:
path: dist
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- name: Install dependencies
run: npm install
- name: Pack into zip and create installer
run: npm run dist
- name: Upload Artifacts
uses: actions/upload-artifact@master
with:
path: dist

publish-release:
if: contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@master
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "artifact/*-ia32-win.zip,artifact/*.exe"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-release:
if: contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build

steps:
- name: Download artifact
uses: actions/download-artifact@master
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "artifact/*-ia32-win.zip,artifact/*.exe"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
Loading

0 comments on commit 451cb4a

Please sign in to comment.