Skip to content

release 1.0.3 #35

Merged
merged 18 commits into from
Mar 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions .github/workflows/release-and-update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# This is a basic workflow to help you get started with Actions

name: Release CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
release_version:
required: false
type: string

env:
RELEASE_VERSION: ${{ inputs.release_version }}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
release-and-update-changelog:
# The type of runner that the job will run on
runs-on: [ self-hosted ]
name: Update the change log and generate a new tag for release

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/setup-node@v3
name: Use Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
global: true
name: ${{ github.actor }}
email: ${{ github.actor }}@vtb.link
actor: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: update the changelog and add a new tag
if: ${{ env.RELEASE_VERSION == '' }}
run: pnpm release:changelog

- name: update the changelog and add a specific tag
if: ${{ env.RELEASE_VERSION != '' }}
run: pnpm release:changelog --release-as ${{ env.RELEASE_VERSION }}
- name: publish the update
run: git push --follow-tags
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,48 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## 1.0.3 (2023-03-05)



## 1.0.2 (2023-03-05)



## [1.0.1](https://vlink.dev/EOEFANS/eoefans-web/compare/v1.0.0...v1.0.1) (2023-03-05)


### ♻ Code Refactoring

* **custom**: 用户点击多次tag栏之后将只会搜索最后一次结果 ([7572267](https://vlink.dev/EOEFANS/eoefans-web/commits/7572267)), closes [#33](https://vlink.dev/EOEFANS/eoefans-web/issues/33)


### ⚡ Performance Improvements

* **custom**: 提取公共组件和hooks ([7ef3f13](https://vlink.dev/EOEFANS/eoefans-web/commits/7ef3f13))


### ✨ Features

* **custom**: pc端搜索提供搜索建议,但是并不完善,up列表需要更新 ([6911c57](https://vlink.dev/EOEFANS/eoefans-web/commits/6911c57))


### 🐛 Bug Fixes

* **custom**: 添加seo优化 ([4a02535](https://vlink.dev/EOEFANS/eoefans-web/commits/4a02535))
* **custom**: 修复选择栏在手机端过窄的问题 ([73e6949](https://vlink.dev/EOEFANS/eoefans-web/commits/73e6949))
* **custom**: 修复tab栏在搜索页面出现的bug,修改图片页tag栏默认顺序,增加当前页提示 ([aec33cc](https://vlink.dev/EOEFANS/eoefans-web/commits/aec33cc))
* **custom**: 修复tag栏在手机端出现两次的bug ([5a66368](https://vlink.dev/EOEFANS/eoefans-web/commits/5a66368))


### 💄 Styles

* **custom**: 删除消息线 ([e3e88d2](https://vlink.dev/EOEFANS/eoefans-web/commits/e3e88d2))
* **custom**: 修改中部栏,将导航栏收缩至蛞蝓右边,header栏右边将承载更多内容 ([e844579](https://vlink.dev/EOEFANS/eoefans-web/commits/e844579))
* **custom**: 修改pc端顶部样式 ([6af984c](https://vlink.dev/EOEFANS/eoefans-web/commits/6af984c)), closes [#29](https://vlink.dev/EOEFANS/eoefans-web/issues/29)



# [1.0.0](/compare/v0.3.0...v1.0.0) (2023-03-01)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eoefans-web",
"version": "1.0.0",
"version": "1.0.3",
"type": "module",
"scripts": {
"dev": "vite --config ./config/vite.dev.config.ts",
Expand Down
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ _ _ \_ __ \_ _ \__ /_ _ __ `/__ __ \__ ___/ __ | /| / /_ _ \__ _
\___/ \____/ \___/ /_/ \__,_/ /_/ /_/ /____/ ____/|__/ \___/ /_.___/
```
## 自动化指南
```main```分支每当```git push```的时候自动部署到测试环境并执行代码安全扫描。

发布新版时,请手动执行[Release CI](https://vlink.dev/EOEFANS/eoefans-web/actions/workflows/release-and-update-changelog.yml),未填写版本号时自动递增,手动指定版本号时发布指定版本号。

部署至生产环境请将```main```分支提交PR至```release```分支并合并。```release```分支将自动部署至生产环境。

---
## 目录结构(暂定)

1. component:存放组件
Expand Down