Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Mar 25, 2022
1 parent 0dcc056 commit 1d4d83f
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Automatic GitHub Release
uses: justincy/[email protected]
id: release
- uses: actions/setup-node@v1
if: steps.release.outputs.released == 'true'
with:
registry-url: 'https://registry.npmjs.org'
- name: Publish
if: steps.release.outputs.released == 'true'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
27 changes: 27 additions & 0 deletions src/responses/resources/skyblock/election.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
interface Candidate {
key: string
name: string
perks: {
name: string
description: string
}[]
}

export interface SkyBlockElectionResponse {
success: true
lastUpdated: number
mayor: Candidate & {
election: {
year: number
candidates: (Candidate & {
votes: number
})[]
}
}
current?: {
year: number
candidates: (Candidate & {
votes: number
})[]
}
}

0 comments on commit 1d4d83f

Please sign in to comment.