Skip to content

Commit

Permalink
ci: add GitHub action for release
Browse files Browse the repository at this point in the history
  • Loading branch information
gavvvr committed Jan 21, 2025
1 parent c653bb9 commit 1bad8a0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
tags:
- '*'

env:
PLUGIN_NAME: timecodes

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Environment details
run: pnpm version
- name: Build
id: build
run: |
pnpm install
pnpm run build
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
gh release create "$tag" \
--title="$tag" \
out/main.js manifest.json

0 comments on commit 1bad8a0

Please sign in to comment.