Skip to content

Commit

Permalink
Run deno publish from tag workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
silverlyra committed Jun 22, 2024
1 parent 092cc43 commit d809c11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 42 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/publish.yml

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tag version
name: Tag and publish version

on:
push:
Expand All @@ -11,6 +11,7 @@ jobs:

permissions:
contents: write
id-token: write # The OIDC ID token is used for authentication with JSR.

steps:
- name: Check out source
Expand Down Expand Up @@ -38,7 +39,7 @@ jobs:
const subject = commit.message.split("\n", 1)[0];
console.log(chalk.bold(`“${subject}”`), chalk.gray(`[${sha}]`));
console.log(
`committed by ${chalk.bold(author.login)}`,
`by ${chalk.bold(author.login)}`,
`(${commit.author.name})`,
chalk.gray(commit.author.date)
);
Expand Down Expand Up @@ -94,3 +95,8 @@ jobs:
git tag -v "$TAG_NAME"
git push origin "$TAG_NAME"
- name: Publish to JSR
if: fromJson(steps.check.outputs.result).pending
run: >
deno publish

0 comments on commit d809c11

Please sign in to comment.