Skip to content

fix: Remove period (.) from destination path (#29) #11

fix: Remove period (.) from destination path (#29)

fix: Remove period (.) from destination path (#29) #11

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"