Skip to content

Commit f5eeb2e

Browse files
authored
chore: fix publish (#683)
1 parent bd068c4 commit f5eeb2e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ jobs:
7171
cargo test --locked --all-targets
7272
deno test --allow-read --allow-net --allow-env --allow-write
7373
74+
- name: Publish
75+
if: |
76+
contains(matrix.os, 'ubuntu') &&
77+
github.repository == 'denoland/deno_doc' &&
78+
startsWith(github.ref, 'refs/tags/')
79+
env:
80+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
81+
run: |
82+
cargo publish
83+
84+
- name: Publish to JSR
85+
if: contains(matrix.os, 'ubuntu')
86+
run: cd js && deno run -A jsr:@david/publish-on-tag@0.1.3 --allow-dirty
87+
7488
- name: Install cargo-llvm-cov
7589
if: contains(matrix.os, 'ubuntu')
7690
uses: taiki-e/install-action@cargo-llvm-cov
@@ -86,17 +100,3 @@ jobs:
86100
files: lcov.info
87101
fail_ci_if_error: true
88102
token: ${{ secrets.CODECOV_TOKEN }}
89-
90-
- name: Publish
91-
if: |
92-
contains(matrix.os, 'ubuntu') &&
93-
github.repository == 'denoland/deno_doc' &&
94-
startsWith(github.ref, 'refs/tags/')
95-
env:
96-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
97-
run: |
98-
cargo publish
99-
100-
- name: Publish to JSR
101-
if: contains(matrix.os, 'ubuntu')
102-
run: cd js && deno run -A jsr:@david/publish-on-tag@0.1.3 --allow-dirty

0 commit comments

Comments
 (0)