Skip to content

feat: full rewrite of the project #17

feat: full rewrite of the project

feat: full rewrite of the project #17

Workflow file for this run

name: Release
on:
pull_request:
types: [closed]
branches:
- main
permissions:
contents: write
jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Extract version from package.json
id: extract_version
run: |
VERSION=$(jq -r '.version' package.json)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Create Git tag
run: |
git tag -a "$VERSION" -m "Release $VERSION"
git push origin "$VERSION"
- name: Build the package
run: yarn build
- name: Notify release
run: echo "Release ${{ env.VERSION }} has been successfully created."