Skip to content

Update npm (#82)

Update npm (#82) #41

# Based on https://github.com/JetBrains/intellij-platform-plugin-template/blob/main/.github/workflows/template-cleanup.yml
name: Template Cleanup
on:
push:
branches:
- main
jobs:
cleanup:
name: Cleanup
runs-on: ubuntu-latest
if: github.event.repository.name != 'sveltekit-quick-starter'
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cleanup
run: |
# Replace Every %NAME% with the repository name
find . -type f -exec sed -i "s/%NAME%/${{ github.event.repository.name }}/g" {} +
# Move everything from .github/template-cleanup to the root
shopt -s dotglob
cp -R .github/template-cleanup/* .
# Remove the template cleanup workflow and the template-cleanup folder
rm -r .github/template-cleanup .github/workflows/template-cleanup.yml
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Template cleanup