Skip to content

Commit e1fda39

Browse files
committed
chore(ci): added shipjs
1 parent 15fc9da commit e1fda39

10 files changed

+3727
-7092
lines changed

.github/workflows/publish.yml

-44
This file was deleted.

.github/workflows/release.yml

-41
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Ship js Manual Prepare
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
prepare:
11+
runs-on: ubuntu-latest
12+
if: ${{ !startsWith(github.event.head_commit.message, format('chore{0} release', ':')) }}
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
ref: main
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
- run: npm ci
22+
- run: |
23+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
24+
git config --global user.name "github-actions[bot]"
25+
- run: npm run release -- --yes --no-browse
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}

.github/workflows/shipjs-trigger.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Ship js trigger
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
jobs:
7+
build:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
ref: main
16+
- uses: actions/setup-node@v4
17+
with:
18+
registry-url: "https://registry.npmjs.org"
19+
node-version: '18'
20+
- run: npm ci
21+
- run: npx shipjs trigger
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

env.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/** Do not edit this file manually. It's generated during build process. */
2+
export const PACKAGE_NAME = 'uc-video';
3+
export const PACKAGE_VERSION = '0.1.4';

env.template.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const PACKAGE_NAME = 'uc-video';
2+
export const PACKAGE_VERSION = '{{packageVersion}}';

0 commit comments

Comments
 (0)