-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
365 additions
and
284 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: On Release Frontend | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./frontend | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20.x' | ||
- name: Install | ||
run: make install -c frontend | ||
- 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 |
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
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,18 @@ | ||
start: | ||
npm start | ||
|
||
install: | ||
npm i | ||
|
||
build: | ||
npm run build | ||
|
||
publish: | ||
npm publish --access=public | ||
|
||
lint: | ||
npx eslint . | ||
|
||
# TODO: добавить тесты | ||
test: | ||
echo no tests |
Oops, something went wrong.