Skip to content

Commit

Permalink
Merge pull request #24 from wuespace/release-automation
Browse files Browse the repository at this point in the history
"Stateless" release automation
  • Loading branch information
pklaschka authored Dec 9, 2024
2 parents 3946198 + b0953d7 commit ce17dd5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/publish-jsr.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release Automation (triggered on tag)

on:
push:
tags: v[0-9]+.[0-9]+.[0-9]+

jobs:
test-deno:
runs-on: ubuntu-latest
name: Test the Deno CLI
steps:
- uses: actions/checkout@v2
- name: Setup Deno
uses: denolib/setup-deno@v2
with:
deno-version: v2.x
- name: Run the CLI to verify it's working
run: deno task run
publish-jsr:
name: Publish to JSR
runs-on: ubuntu-latest
needs: test-deno
steps:
- uses: actions/checkout@v2
- name: Setup Deno
uses: denolib/setup-deno@v2
with:
deno-version: v2.x
- name: Update version in `deno.json`
run: |
tag=${GITHUB_REF#refs/tags/}
version=${tag#v}
jq --arg version "$version" '.version = $version' deno.json > tmp.$$.json
mv tmp.$$.json deno.json
- name: Publish to JSR
run: deno publish --allow-dirty

0 comments on commit ce17dd5

Please sign in to comment.