Skip to content

fix(ci): bundle and push directly #2

fix(ci): bundle and push directly

fix(ci): bundle and push directly #2

Workflow file for this run

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'
- 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 "Upload new bundle"
git push