Skip to content

Merge pull request #11 from Bergbok/dependabot/npm_and_yarn/Extension… #14

Merge pull request #11 from Bergbok/dependabot/npm_and_yarn/Extension…

Merge pull request #11 from Bergbok/dependabot/npm_and_yarn/Extension… #14

name: Publish auto-skip-tracks-by-duration
on:
workflow_dispatch:
push:
branches: ['main']
paths: ['Extensions/auto-skip-tracks-by-duration/**']
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./Extensions/auto-skip-tracks-by-duration
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
working-directory: Extensions/auto-skip-tracks-by-duration
run: npm ci
- name: Remove existing dist folder
run: rm -rf dist
- name: Build
run: npm run build-local
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A dist
git commit -m "Publish auto-skip-tracks-by-duration"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}