Skip to content

Commit

Permalink
fix: github action rework
Browse files Browse the repository at this point in the history
  • Loading branch information
0nza1101 committed May 12, 2022
1 parent d95faaa commit f6fb5d3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 35 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deno CI
on:
push:
branches:
- master
- main
jobs:
build:
name: ${{ matrix.kind }} ${{ matrix.os }}
Expand All @@ -18,28 +18,29 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Deno
uses: denolib/setup-deno@master
uses: denoland/setup-deno@v1
with:
deno-version: 1.x
deno-version: vx.x.x
- name: Tests
run: deno test --allow-read
run: deno test --allow-net
release:
permissions: write-all
name: Release
runs-on: ubuntu-18.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
if: "!contains(github.event.head_commit.message, 'skip-release') && !contains(github.event.head_commit.message, 'skip-ci') && github.event_name != 'pull_request'"
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12.17.0
- name: Setup package.json
run: echo '{"name":"@denorg/starter","version":"0.0.0","publishConfig":{"access":"public"},"scripts":{"semantic-release":"semantic-release"},"repository":{"type":"git","url":"https://github.com/denorg/starter.git"},"author":"Denorg<[email protected]>","license":"MIT","bugs":{"url":"https://github.com/denorg/starter/issues"},"homepage":"https://denorg.github.io/starter/","devDependencies":{"semantic-release":"^17.0.4","semantic-release-gitmoji":"^1.3.3"}}' > package.json
- name: Install dependencies
run: npm install
node-version: 16
# - name: Setup package.json
# run: echo '{"name":"@0nza1101/heroku-awakener","version":"0.0.0","publishConfig":{"access":"public"},"scripts":{"semantic-release":"semantic-release"},"repository":{"type":"git","url":"https://github.com/0nza1101/heroku-awakener.git"},"author":"0nza1101<[email protected]>","license":"MIT","bugs":{"url":"https://github.com/0nza1101/heroku-awakener/issues"},"homepage":"https://github.com/0nza1101/heroku-awakener","devDependencies":{"semantic-release":"^17.0.4","semantic-release-gitmoji":"^1.3.3"}}' > package.json
# - name: Install dependencies
# run: npm install
- name: Release
run: npx semantic-release
run: npx semantic-release --branches main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Test CI
on:
push:
branches-ignore:
- "master"
- "main"
pull_request:
branches-ignore:
- "master"
- "main"
jobs:
build:
name: ${{ matrix.kind }} ${{ matrix.os }}
Expand All @@ -19,10 +19,10 @@ jobs:
DENO_BUILD_MODE: release
V8_BINARY: true
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Deno
uses: denolib/setup-deno@master
uses: denoland/setup-deno@v1
with:
deno-version: 1.x
deno-version: vx.x.x
- name: Run tests
run: deno test --allow-read
run: deno test --allow-net
19 changes: 4 additions & 15 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"plugins": [
[
"semantic-release-gitmoji",
{
"releaseRules": {
"patch": {
"include": [":bento:", ":recycle:"]
}
}
}
],
"@semantic-release/github",
"@semantic-release/npm"
]
}
"plugins": [
"@semantic-release/github"
]
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ☁️💤 Heroku awakener

## ⭐ Getting started
Deno port of [heroku-keep-awake](https://github.com/colbymillerdev/heroku-keep-awake)
## Getting started
```ts
import { wakeDyno, wakeDynos } from "https://raw.githubusercontent.com/0nza1101/heroku-awakener/main/mod.ts";

Expand Down

0 comments on commit f6fb5d3

Please sign in to comment.