mirror of
https://gitea.redwind.top/Austin/subscription
synced 2024-11-16 09:52:20 +08:00
chore: release
This commit is contained in:
parent
bd5eb8da22
commit
c85f0bea83
1
.github/workflows/release-please.yml
vendored
1
.github/workflows/release-please.yml
vendored
|
@ -16,4 +16,3 @@ jobs:
|
||||||
- uses: google-github-actions/release-please-action@v3
|
- uses: google-github-actions/release-please-action@v3
|
||||||
with:
|
with:
|
||||||
release-type: node
|
release-type: node
|
||||||
package-name: release-please-action
|
|
||||||
|
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -7,8 +7,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
if: |
|
if: ${{ startsWith(github.event.head_commit.message, 'chore(main):') && contains(github.event.head_commit.message, 'release') }}
|
||||||
${{ contains(github.event.head_commit.message, 'chore: release') }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -21,9 +20,7 @@ jobs:
|
||||||
|
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
|
|
||||||
- name: Release
|
- run: pnpm run build
|
||||||
run: |
|
|
||||||
pnpm run build
|
|
||||||
|
|
||||||
- name: Git commit
|
- name: Git commit
|
||||||
id: commit
|
id: commit
|
||||||
|
@ -44,10 +41,7 @@ jobs:
|
||||||
branch: ${{ github.ref }}
|
branch: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
|
if: ${{ steps.commit.outcome == 'success' }}
|
||||||
run: |
|
run: |
|
||||||
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
|
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
|
||||||
pnpm publish
|
pnpm publish
|
||||||
|
|
||||||
- name: Log
|
|
||||||
if: ${{ steps.commit.outcome != 'success' }}
|
|
||||||
run: echo Nothing to commit.
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user