Merge pull request #17 from LoredDev/dev

Update production workflows
This commit is contained in:
Guz
2023-06-29 17:19:30 -03:00
committed by GitHub
4 changed files with 16 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ on:
jobs:
deploy:
if: github.repository == 'loreddev/marknow'
uses: loreddev/.github/.github/workflows/vercel-deploy.yml@main
secrets: inherit
with:

View File

@@ -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:

View File

@@ -8,6 +8,7 @@ on:
jobs:
mirror:
if: github.repository == 'loreddev/marknow'
uses: loreddev/.github/.github/workflows/mirrors.yml@main
secrets: inherit
with:

View File

@@ -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 }}