Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.8.2 #175

Merged
merged 4 commits into from
Sep 12, 2023
Merged

1.8.2 #175

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
Loading