Skip to content

Commit

Permalink
add new types + auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
Himyu committed Feb 22, 2022
1 parent 32c58e6 commit c0d4668
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 10 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

# Run on every commit tag which begins with "v" (e.g., "v0.1.4")
on:
push:
tags:
- "v*"

# Automatically create a GitHub Release, with release details specified (the relevant commits)
jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
steps:

- uses: actions/checkout@v2

- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: '16'

- name: Build
run: |
npm ci
npm run build
- name: Create Zip
run: zip -r module-valorant-pregame.zip package.json package-lock.json dist/* frontend/*

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
module-valorant-pregame.zip
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "valorant-pregame",
"name": "module-valorant-pregame",
"version": "1.0.0",
"description": "Module that provides a gfx for the Valorant PreGame",
"author": "Himyu",
"author": "RCVolus",
"license": "MIT",
"toolkit": {
"modes": [
Expand All @@ -13,9 +13,9 @@
},
"needsBuild": true
},
"dependencies": {
"devDependencies": {
"typescript": "^4.3.2",
"league-prod-toolkit": "file:../..",
"rcv-prod-toolkit-types": "^1.0.1",
"sass": "^1.34.1"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PluginContext } from 'league-prod-toolkit/core/modules/Module'
import type { PluginContext } from 'rcv-prod-toolkit-types'

module.exports = async (ctx: PluginContext) => {
// Register new UI page
Expand Down
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
"allowJs": true,
"outDir": "./dist",
"rootDir": "./",
"tsBuildInfoFile": "dist/.tsbuildinfo",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true
}
}
},
"exclude": ["frontend", "dist"]
}

0 comments on commit c0d4668

Please sign in to comment.