Compile Userscript #2
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: Compile Userscript | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Dependencies | |
run: | | |
npm install --global yarn | |
yarn global add typescript | |
- name: Compile typescript | |
run: tsc | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: userscript | |
path: ./snapenhance.user.js | |