Skip to content

Commit

Permalink
1.8.2 (#175)
Browse files Browse the repository at this point in the history
This bumps the version to 1.8.2 and fixes #174.
  • Loading branch information
magurotuna authored Sep 12, 2023
1 parent 02c3c4b commit b841621
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check on release

on:
release:
types: [created]

jobs:
check-on-release:
runs-on: [ubuntu-latest]

steps:
- name: Setup repo
uses: actions/checkout@v3

- name: Setup Deno
uses: denoland/setup-deno@v1

- name: check version match
run: deno task version-match
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"tasks": {
"test": "deno test -A --unstable tests/ src/",
"build-action": "deno bundle ./src/utils/mod.ts > ./action/deps.js"
"build-action": "deno bundle ./src/utils/mod.ts > ./action/deps.js",
"version-match": "deno run --allow-read --allow-env ./tools/version_match.ts"
}
}
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const VERSION = "1.8.0";
export const VERSION = "1.8.2";

export const MINIMUM_DENO_VERSION = "1.28.3";
11 changes: 11 additions & 0 deletions tools/version_match.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2023 Deno Land Inc. All rights reserved. MIT license.

// This script ensures that version specifier defined in `src/version.ts`
// matches the released tag version.
// Intended to run when a draft release is created on GitHub.

import { VERSION } from "../src/version.ts";
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts";

const releaseTagVersion = Deno.env.get("RELEASE_TAG")!;
assertEquals(VERSION, releaseTagVersion);

0 comments on commit b841621

Please sign in to comment.