Skip to content

Commit

Permalink
automatically release to jsr on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sylc committed Oct 11, 2024
1 parent 4a0f4a2 commit 5f5f511
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"

- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: lint
run: deno lint
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish
on:
push:
tags: ["v*.*.*"]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: denoland/setup-deno@v2
with:
deno-version: v2.0.x
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"

- name: Check out repository code
uses: actions/checkout@v4

- name: Publish package
run: deno publish
6 changes: 4 additions & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Commits type must be one of the following:

## Release

To release a new version run the below:
To release a new version run the below on `main`:

`deno task release`
- `deno task release`

This will tag the release which then trigger a new CI to publish to JSR.

0 comments on commit 5f5f511

Please sign in to comment.