Skip to content

feat: add github action to automatically release #1

feat: add github action to automatically release

feat: add github action to automatically release #1

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*' # Trigger on version tags
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Zip build artifacts
run: |
cd dist
zip -r ../chrome-extension.zip .
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: chrome-extension.zip
draft: false
prerelease: false
generate_release_notes: true