EmulatorJS/.github/workflows/main.yml

29 lines
548 B
YAML
Raw Normal View History

2023-07-18 15:56:27 +00:00
name: Minify Code
2023-10-01 08:01:15 +00:00
on:
push:
paths:
- 'data/*.js'
- 'data/*.css'
2023-07-18 15:56:27 +00:00
jobs:
2023-10-01 08:01:15 +00:00
minify:
2023-07-18 15:56:27 +00:00
runs-on: ubuntu-latest
steps:
2023-10-01 08:01:15 +00:00
- uses: actions/checkout@v3
2023-07-18 15:56:27 +00:00
with:
2023-10-01 08:01:15 +00:00
token: ${{ secrets.BOT_ACCESS_TOKEN }}
- uses: actions/setup-node@v3
2023-07-18 15:56:27 +00:00
with:
2023-10-01 08:01:15 +00:00
node-version: '16'
- name: Install NodeJS modules
run: cd data/minify && npm install
- name: Minify code
run: cd data/minify && npm run build
2023-07-18 15:56:27 +00:00
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions