From 3190d176f23ebd6ba8a6749ce0980dd32121ad8d Mon Sep 17 00:00:00 2001 From: bdeshi Date: Mon, 27 Jul 2026 15:24:01 +0600 Subject: [PATCH] add release workflow --- .github/workflows/ci.yml | 14 ++++++++++++++ .github/workflows/release.yml | 25 +++++++++++++++++++++++++ versions.json | 3 +++ 3 files changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/release.yml create mode 100644 versions.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..597fbce --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,14 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + syntax-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: node --check main.js diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6ef25ca --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release + +on: + push: + tags: + - "*" + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Create release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + tag="${GITHUB_REF#refs/tags/}" + gh release create "$tag" \ + --title "$tag" \ + --generate-notes \ + main.js manifest.json versions.json diff --git a/versions.json b/versions.json new file mode 100644 index 0000000..d5baae4 --- /dev/null +++ b/versions.json @@ -0,0 +1,3 @@ +{ + "1.0.0": "1.1.0" +}