perf: ♻️ Update CI #27
Workflow file for this run
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: ci | |
on: | |
push: | |
tags: | |
- v*.*.* | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Enable corepack and pnpm | |
run: | | |
corepack enable | |
corepack prepare pnpm@latest --activate | |
- name: Install dependencies and build | |
run: | | |
pnpm install | |
pnpm build | |
- name: Confirm version | |
run: | | |
echo "Current version:" | |
cat package.json | grep version | |
- name: Push new tags | |
run: | | |
git push --follow-tags | |
sleep 10 # Delay to ensure tags are processed | |
- name: Checkout latest version | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: false | |
prerelease: false | |
fail_on_unmatched_files: false | |
files: dist/**/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |