2024-09-27 07:58:58 +00:00
|
|
|
name: CD
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
2024-09-27 09:03:56 +00:00
|
|
|
linter:
|
2024-09-27 07:58:58 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-09-27 09:33:36 +00:00
|
|
|
- uses: actions/checkout@v3
|
2024-09-27 07:58:58 +00:00
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: lts/*
|
|
|
|
- uses: pnpm/action-setup@v2.1.0
|
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
- run: pnpm install --ignore-scripts
|
2024-09-27 08:48:46 +00:00
|
|
|
- run: pnpm wxt prepare
|
2024-09-27 07:58:58 +00:00
|
|
|
- run: pnpm run lint
|
2024-10-27 01:02:56 +00:00
|
|
|
- run: pnpm run check
|
2024-09-27 07:58:58 +00:00
|
|
|
|
|
|
|
release:
|
|
|
|
needs: linter
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-09-27 09:33:36 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
# https://github.com/semantic-release/semantic-release/issues/2636
|
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2024-09-27 07:58:58 +00:00
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: lts/*
|
|
|
|
- uses: pnpm/action-setup@v2.1.0
|
|
|
|
with:
|
|
|
|
version: latest
|
2024-09-27 09:03:56 +00:00
|
|
|
- run: pnpm install --ignore-scripts
|
|
|
|
- run: pnpm wxt prepare
|
2024-09-28 05:01:03 +00:00
|
|
|
- run: pnpm semantic-release
|
2024-09-27 08:10:51 +00:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.WEB_CHAT_GITHUB_TOKEN }}
|