Skip to content

Merge branch 'master' of github.com:CaoMeiYouRen/rss-impact-server #341

Merge branch 'master' of github.com:CaoMeiYouRen/rss-impact-server

Merge branch 'master' of github.com:CaoMeiYouRen/rss-impact-server #341

Workflow file for this run

name: Release
on:
push:
branches:
- master
# 仅取消针对当前工作流正在进行的作业或运行
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: "8.11"
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "pnpm"
- name: Cache Dependency
uses: actions/cache@v4
with:
path: |
~/.npm
~/.yarn
~/.cache/pnpm
~/cache
!~/cache/exclude
**/node_modules
key: pnpm-${{ runner.os }}-${{ hashFiles('package.json') }}
restore-keys: pnpm-${{ runner.os }}
- run: pnpm i --frozen-lockfile
- run: pnpm run lint
- run: pnpm run build
- run: pnpm run test
- run: pnpm run test:e2e
# - env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# run: pnpm run release