Skip to content

Commit

Permalink
feat: Move to ESM (#98)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Use ESM
BREAKING CHANGE: Use Probot v13
BREAKING CHANGE: Move to Node 20
  • Loading branch information
AaronDewes committed Mar 18, 2024
1 parent ee3899f commit d074d5e
Show file tree
Hide file tree
Showing 10 changed files with 99,456 additions and 90,621 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/inception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
issuesOpened:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version: 16
node-version: 20
- run: npm ci
- run: npm run build
- uses: ./
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: 20
cache: npm
- run: npm ci
- run: npm run build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version: 16
node-version: 20
- run: npm ci
- run: npm test
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ branding:
icon: "gift"
color: orange
runs:
using: "node12"
using: "node20"
main: "dist/index.js"
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @param {import('probot').Probot} app
*/
module.exports = (app) => {
app.log("Yay! The app was loaded!");
export default (app) => {
app.log.info("Yay! The app was loaded!");

app.on("issues.opened", async (context) => {
return context.octokit.issues.createComment(
Expand Down
Loading

0 comments on commit d074d5e

Please sign in to comment.