1
.github/workflows/deploy-preview.yml
vendored
1
.github/workflows/deploy-preview.yml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
if: github.repository == 'loreddev/marknow'
|
||||
uses: loreddev/.github/.github/workflows/vercel-deploy.yml@main
|
||||
secrets: inherit
|
||||
with:
|
||||
|
||||
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -1,12 +1,16 @@
|
||||
name: ▲ Deploy to Vercel
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_run:
|
||||
workflows: [🧪 Code checking, 🎉 Release]
|
||||
types:
|
||||
- completed
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'loreddev/marknow' }}
|
||||
uses: loreddev/.github/.github/workflows/vercel-deploy.yml@main
|
||||
secrets: inherit
|
||||
with:
|
||||
|
||||
1
.github/workflows/mirror.yml
vendored
1
.github/workflows/mirror.yml
vendored
@@ -8,6 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
mirror:
|
||||
if: github.repository == 'loreddev/marknow'
|
||||
uses: loreddev/.github/.github/workflows/mirrors.yml@main
|
||||
secrets: inherit
|
||||
with:
|
||||
|
||||
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -1,7 +1,10 @@
|
||||
name: 🎉 Release
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_run:
|
||||
workflows: [🧪 Code checking]
|
||||
types:
|
||||
- completed
|
||||
branches:
|
||||
- main
|
||||
|
||||
@@ -9,11 +12,13 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
if: github.repository == 'loreddev/marknow'
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'loreddev/marknow' }}
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
name: Release
|
||||
env:
|
||||
HUSKY_SKIP_HOOKS: true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -28,6 +33,8 @@ jobs:
|
||||
uses: changesets/action@v1
|
||||
with:
|
||||
publish: pnpm release
|
||||
commit: 'chore: 🔗🦋 version packages'
|
||||
title: '🦋 Changeset: Version packages'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user