-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve DX and update package.json dependencies (#24)
* 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
1 parent
d52e149
commit 451cb4a
Showing
8 changed files
with
356 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"editor.formatOnSave": true | ||
} |
Oops, something went wrong.