Commit Graph

5 Commits

Author SHA1 Message Date
Sped0n
ef9761a7b6 chore(artifacts.yml): update the syntax for specifying changed files in the 'changed-files-specific' step to improve readability and maintainability 2023-11-04 17:18:09 +08:00
Sped0n
e85d0253ea chore(artifacts.yml): add workflow_dispatch event to allow manual triggering of the workflow 2023-11-04 17:16:02 +08:00
Sped0n
d45d22829e feat(artifacts.yml): add GitHub Actions workflow to update bundled artifacts
This commit adds a new GitHub Actions workflow file, artifacts.yml, which is triggered on push events to the main branch. The workflow consists of two jobs: "filter" and "build".

The "filter" job checks if any of the specified files (package.json and assets/**) have changed. If any file in the scope has changed, a step is executed. Otherwise, the workflow is prevented from running.

The "build" job is executed if the branch is main and the repository is not a fork. It performs the following steps:
1. Checkout the repository
2. Setup pnpm package manager
3. Get the pnpm store directory path
4. Setup pnpm cache using actions/cache
5. Install dependencies using pnpm
6. Build the artifacts
7. Configure git user email and name
8. Add all changes to the commit and commit with the message "build: update bundled artifacts [skip ci]"
9. Push the changes to the repository
2023-11-04 17:00:04 +08:00
Sped0n
67c0dcd70b chore(dependabot.yml): change the update schedule interval from daily to weekly 2023-11-01 22:54:23 +08:00
Spedon
4c2a45b54d Create dependabot.yml 2023-03-17 17:43:08 +08:00