build(deps-dev): bump @rollup/plugin-commonjs from 28.0.1 to 28.0.2 #346
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' | |
runs-on: 'windows-latest' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: install dependencies | |
run: npm i | |
- name: Build | |
run: npm run dist | |
- name: Upload Files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: | | |
dist/League-Observer-Tool-Setup-${{ github.ref_name }}.exe | |
dist/League-Observer-Tool-Setup-${{ github.ref_name }}.exe.blockmap | |
dist/latest.yml | |
Release: | |
name: Release | |
needs: [build] | |
runs-on: 'ubuntu-latest' | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Download Files | |
uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
- uses: 'marvinpinto/action-automatic-releases@latest' | |
with: | |
repo_token: '${{ secrets.GITHUB_TOKEN }}' | |
prerelease: false | |
files: | | |
League-Observer-Tool-Setup-${{ github.ref_name }}.exe | |
League-Observer-Tool-Setup-${{ github.ref_name }}.exe.blockmap | |
latest.yml |