fix: Remove period (.
) from destination path (#29)
#11
This file contains 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: | |
- "main" | |
env: | |
source: "main" | |
release: "release" | |
jobs: | |
package-changes: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: "${{ env.release }}" | |
fetch-depth: 0 | |
ssh-key: "${{ secrets.COMMIT_KEY }}" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- uses: prompt/actions-merge-branch@v2 | |
with: | |
from: "origin/${{ env.source }}" | |
commit: false | |
- name: Install Javascript dependencies with npm | |
run: npm install | |
- name: Package action for distribution | |
run: npm run build | |
- name: Push packaged action to branch | |
uses: EndBug/add-and-commit@v7 | |
with: | |
add: "['.', 'dist --force']" | |
branch: "${{ env.release }}" | |
default_author: github_actions | |
message: "build: Package action as `dist` with latest changes" |