35 lines
746 B
YAML
35 lines
746 B
YAML
name: 👷 Release preview
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows:
|
|
- 🧪 Code checking
|
|
types:
|
|
- completed
|
|
branches:
|
|
- dev
|
|
|
|
jobs:
|
|
release:
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'loreddev/marknow' }}
|
|
name: Release preview
|
|
env:
|
|
HUSKY: 0
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup environment
|
|
uses: ./.github/actions/pnpm-setup
|
|
|
|
- name: Update versions
|
|
run: pnpm changeset version --snapshot next
|
|
|
|
- name: Release packages
|
|
run: pnpm run release --tag next
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|