build: Package action as dist with latest changes
#11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Package Action" | |
| on: | |
| push: | |
| branches: | |
| - "release" | |
| jobs: | |
| push-changes: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ssh-key: "${{ secrets.COMMIT_KEY }}" | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: "package.json" | |
| - name: Install Javascript dependencies with npm | |
| run: npm install | |
| - name: Package action for distribution | |
| run: npm run package | |
| - name: Push packaged action to branch | |
| uses: EndBug/add-and-commit@v7 | |
| with: | |
| add: "dist --force" | |
| default_author: github_actions | |
| message: "build: Package action as `dist` with latest changes" |