Skip to content

ci: upgrade actions/checkout from v2 to v4 in package.yml (#29) #8

ci: upgrade actions/checkout from v2 to v4 in package.yml (#29)

ci: upgrade actions/checkout from v2 to v4 in package.yml (#29) #8

Workflow file for this run

on:
push:
branches:
- main
name: Package
jobs:
package:
name: Package distribution files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
ref: main
- name: Install packages
run: npm ci
- name: Run linter
run: npm run lint
- name: Package
run: npm run package
- name: Commit
run: |
git config --global user.name "GitHub Actions"
git add dist/
git commit -m "Update dist" || echo "No changes to commit"
git push origin main