Manual Release #21
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: Manual Release | |
on: | |
workflow_dispatch: # This allows the workflow to be triggered manually | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Change to https | |
run: | | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git | |
- name: Set Git identity | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
- name: Release draft | |
run: pnpm release-it --no-git.push --no-npm.publish --no-github.release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build the project | |
run: pnpm build | |
- name: Zip the dist directory | |
run: | | |
zip -r release.zip dist | |
- name: Run release-it | |
run: pnpm release-it --ci --no-git.commit --no-git.tag --no-increment --no-git.changelog --no-plugins --no-hooks | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |