This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
π· Release preview #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/eslit' }} | |
name: Release preview | |
env: | |
HUSKY: 0 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup environment | |
uses: ./.github/actions/pnpm-setup | |
- name: Update versions | |
run: pnpm changeset version --snapshot next | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Release packages | |
run: pnpm run release --tag next | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |