Skip to content

Commit

Permalink
fix: fix release (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredLunde authored Jun 20, 2024
1 parent 2be926f commit 6e79092
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v1
with:
Expand All @@ -33,4 +33,4 @@ jobs:
run: deno fmt --check

- name: Build
run: deno task compile
run: deno task compile
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x.x
node-version: lts

- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 2 additions & 6 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@
"test:coverage": "deno test --allow-env --allow-read --coverage=coverage && deno coverage coverage"
},
"bench": {
"files": {
"include": ["bench"]
}
"include": ["bench"]
},
"test": {
"files": {
"include": ["test"]
}
"include": ["test"]
}
}
6 changes: 5 additions & 1 deletion test/env.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ const originalEnv = Deno.env.toObject();

// @ts-expect-error: it's fine
let exitStub: Stub<typeof Deno, "exit">;

// @ts-expect-error: it's fine
let stderrStub: Stub<typeof Deno["stderr"], "write">;
beforeAll(() => {
// @ts-expect-error: it's fine
exitStub = stub(Deno, "exit");
// @ts-expect-error: it's fine
stderrStub = stub(Deno.stderr, "write");
});

afterEach(() => {
Expand All @@ -31,6 +34,7 @@ afterEach(() => {

afterAll(() => {
exitStub.restore();
stderrStub.restore();
});

describe("env()", () => {
Expand Down

0 comments on commit 6e79092

Please sign in to comment.