Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dzencot committed Sep 25, 2023
1 parent 7f93636 commit 0ef0c7f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: On Release Frontend

on:
push:
tags:
- v*
release:
types: [published]

jobs:
build:
Expand All @@ -12,20 +11,20 @@ jobs:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: make install -c frontend
run: make install
- name: Run linter
run: make lint
- name: Run tests
run: make test
- name: Build dist
run: make build
- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPMJS_COM }}
make publish
run: make publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"start-frontend": "./bin/devServer.js"
},
"scripts": {
"dev": "npx vite --host",
"build": "npx tsc && npx vite build",
"lint": "npx eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "npx vite preview"
"dev": "vite --host",
"build": "tsc && npx vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@types/react": "^18.2.21",
Expand Down

0 comments on commit 0ef0c7f

Please sign in to comment.