Manual Release #13
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://github.com/FatahChan/job-application-tracker/ | |
- 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-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-increment --no-git.changelog --no-plugins --no-hooks | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |