generated from unplugin/unplugin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update GitHub Actions workflow for Deno
This commit updates the GitHub Actions workflow to use Deno for publishing. The version extraction steps have been removed and replaced with a Deno script that handles publishing on tag creation. The workflow now also sets the Deno version through an environment variable.
- Loading branch information
Showing
2 changed files
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
name: jsr | ||
|
||
env: | ||
DENO_VERSION: 1.x | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
workflow_dispatch: | ||
- "v*" | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -17,19 +19,13 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
- run: bun i --frozen-lockfile | ||
- id: get_version | ||
name: Get version | ||
uses: jannemattila/get-version-from-tag@v3 | ||
- name: jsr.json version to packge.json verion | ||
run: | | ||
jq --arg new_version "${{ steps.get_version.outputs.version }}" '.version = $new_version' package.json > package.tmp.json && mv package.tmp.json package.json | ||
jq --arg new_version "${{ steps.get_version.outputs.version }}" '.version = $new_version' jsr.json > jsr.tmp.json && mv jsr.tmp.json jsr.json | ||
working-directory: packages/unplugin-typia | ||
- name: Publish | ||
if: github.ref == 'refs/tags/v*' | ||
run: bun run publish | ||
run: deno run -A jsr:@david/[email protected] | ||
working-directory: packages/unplugin-typia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters