Skip to content

Commit 9dd2f9b

Browse files
committed
Add publish workflow and rename deno.yml
1 parent e1eeec2 commit 9dd2f9b

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/deno.yml renamed to .github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Deno then run `deno lint` and `deno test`.
22
# For more information see: https://github.com/denoland/setup-deno
33

4-
name: Deno
4+
name: Lint and test
55

66
on:
77
push:

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Publish new versions, but run the step only if 'deno.json' changed.
2+
3+
name: Publish
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- deno.json
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: read
18+
id-token: write
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup Deno
24+
uses: denoland/setup-deno@v2
25+
with:
26+
deno-version: v2.x
27+
28+
- name: Publish package
29+
run: deno publish

0 commit comments

Comments
 (0)