41 lines
1014 B
YAML
41 lines
1014 B
YAML
name: 🎉 Release
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [🧪 Code checking]
|
|
types:
|
|
- completed
|
|
branches:
|
|
- main
|
|
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
release:
|
|
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
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup environment
|
|
uses: ./.github/actions/pnpm-setup
|
|
- name: Create Release PR or Public to NPM
|
|
id: changesets
|
|
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 }}
|