Bump typescript from 5.6.3 to 5.7.2 #633
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
# Run on every commit tag which begins with "v" (e.g., "v0.1.4") | |
on: | |
push: | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: 'Build Toolkit' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
- name: Build | |
run: | | |
npm ci | |
npm run build | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build | |
path: | | |
LICENSE | |
README.md | |
package.json | |
package-lock.json | |
install.bat | |
start.bat | |
riot-api-key.bat | |
auth.bat | |
dist | |
!dist/*.ts | |
!dist/utils | |
!dist/utils/* | |
create-zip: | |
name: 'Create Zip File' | |
needs: [build] | |
runs-on: 'ubuntu-latest' | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Download build | |
uses: actions/download-artifact@v4 | |
with: | |
name: build | |
- run: mkdir modules | |
- name: Create Zip | |
run: zip -r prod-toolkit.zip LICENSE README.md package.json package-lock.json install.bat start.bat riot-api-key.bat auth.bat scripts/* dist/* modules | |
- name: Upload Zip | |
uses: actions/upload-artifact@v4 | |
with: | |
name: prod-toolkit | |
path: prod-toolkit.zip | |
release: | |
name: 'Release' | |
needs: [create-zip] | |
runs-on: 'ubuntu-latest' | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Download zip | |
uses: actions/download-artifact@v4 | |
with: | |
name: prod-toolkit | |
- uses: 'marvinpinto/action-automatic-releases@latest' | |
with: | |
repo_token: '${{ secrets.GITHUB_TOKEN }}' | |
prerelease: false | |
files: | | |
prod-toolkit.zip |