Skip to content

Commit 0ef0c7f

Browse files
committed
fixes
1 parent 7f93636 commit 0ef0c7f

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: On Release Frontend
22

33
on:
4-
push:
5-
tags:
6-
- v*
4+
release:
5+
types: [published]
76

87
jobs:
98
build:
@@ -12,20 +11,20 @@ jobs:
1211
run:
1312
working-directory: ./frontend
1413
steps:
15-
- uses: actions/checkout@v2
16-
- name: Use Node.js
17-
uses: actions/setup-node@v2
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v3
1816
with:
1917
node-version: '20.x'
18+
registry-url: 'https://registry.npmjs.org'
2019
- name: Install
21-
run: make install -c frontend
20+
run: make install
2221
- name: Run linter
2322
run: make lint
2423
- name: Run tests
2524
run: make test
2625
- name: Build dist
2726
run: make build
2827
- name: Publish
29-
run: |
30-
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPMJS_COM }}
31-
make publish
28+
run: make publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

frontend/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"start-frontend": "./bin/devServer.js"
77
},
88
"scripts": {
9-
"dev": "npx vite --host",
10-
"build": "npx tsc && npx vite build",
11-
"lint": "npx eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
12-
"preview": "npx vite preview"
9+
"dev": "vite --host",
10+
"build": "tsc && npx vite build",
11+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
12+
"preview": "vite preview"
1313
},
1414
"dependencies": {
1515
"@types/react": "^18.2.21",

0 commit comments

Comments
 (0)