docs: add CODE_OF_CONDUCT.md #14
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: "Make bundle" | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
path: main | |
- uses: actions/checkout@v4 | |
with: | |
ref: build | |
path: build | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
cache-dependency-path: main/pnpm-lock.yaml | |
- name: Bundle and push | |
run: | | |
cd main | |
pnpm install | |
pnpm build | |
cp ./dist/spotifyGenres.js ../build | |
cd ../build | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "ci: upload new bundle" | |
git push | |
- name: Purge jsDelivr cache | |
run: curl https://purge.jsdelivr.net/gh/Vexcited/better-spotify-genres@build/spotifyGenres.js |