Test to bump the version #1
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: Minify with terser | |
on: | |
push: | |
paths: | |
- 'coi-serviceworker.js' | |
permissions: | |
contents: write | |
jobs: | |
minify: | |
name: minify | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
- name: install deps | |
run: npm ci | |
- name: minify | |
run: npm minify | |
- name: commit and push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git remote set-url origin https://github-actions:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add . | |
git commit -m "Minify" | |
git push origin HEAD:${GITHUB_REF} |