Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bartolomej committed Nov 2, 2023
1 parent 77f6f02 commit 1a45dcc
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 91 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
name: Publish

on:
push:
branches:
- main
release:
types:
- created

jobs:
publish:
# To enable auto publishing to github, update your electron publisher
# config in package.json > "build" and remove the conditional below
if: ${{ github.repository_owner == 'electron-react-boilerplate' }}

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest]
os: [ macos-latest ]

steps:
- name: Checkout git repo
Expand All @@ -27,11 +23,15 @@ jobs:
node-version: 18
cache: npm

- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install

- name: Install and build
run: |
npm install
npm run postinstall
npm run build
yarn run postinstall
yarn run build
- name: Publish releases
env:
Expand All @@ -44,3 +44,4 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm exec electron-builder -- --publish always --win --mac --linux
working-directory: ./apps/electron
34 changes: 0 additions & 34 deletions .github/workflows/test.yml

This file was deleted.

1 change: 0 additions & 1 deletion apps/electron/src/services/flowser-app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export class FlowserAppService {
this.flowGatewayService
);
this.goBindingsService = new GoBindingsService({
// TODO(restructure): Test if this works on windows/linux
binDirPath:
process.env.NODE_ENV === 'development'
? path.join(__dirname, '../../../../', 'packages', 'nodejs', 'bin')
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"name": "flowser",
"name": "@onflowser/flowser",
"private": true,
"description": "Easily inspect and debug Flow blockchain ⛓",
"directories": {
"doc": "docs"
},
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev --parallel",
Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "./src/index.ts",
"types": "./src/index.ts",
"scripts": {
"build": "tsc",
"format": "prettier . --write"
},
"keywords": [],
Expand Down
1 change: 1 addition & 0 deletions packages/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"types": "./src/index.ts",
"scripts": {
"dev": "npm run build-bin",
"build": "npm run build-bin",
"build-bin": "sh build-go-bindings.sh",
"format": "prettier . --write"
},
Expand Down
4 changes: 1 addition & 3 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.0.0",
"types": "./src/index.ts",
"scripts": {
"build": "vite build",
"format": "prettier . --write"
},
"devDependencies": {
Expand All @@ -12,8 +11,7 @@
"@types/react-helmet": "^6.1.7",
"prettier": "3.0.3",
"sass": "^1.69.0",
"typescript": "^4.9.5",
"vite-plugin-svgr": "^4.1.0"
"typescript": "^4.9.5"
},
"peerDependencies": {
"react": "^18.2.0",
Expand Down
36 changes: 0 additions & 36 deletions packages/ui/vite.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"build": {
"cache": false,
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
"outputs": ["dist/**", "bin/**", ".next/**"]
},
"compile": {
"dependsOn": ["^build", "^compile"],
Expand Down

0 comments on commit 1a45dcc

Please sign in to comment.