25 lines
790 B
YAML
25 lines
790 B
YAML
name: publish
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish plugins
|
|
runs-on: docker
|
|
container: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
- name: Configure Git
|
|
run: |
|
|
git config --global user.name "${GITHUB_ACTOR}"
|
|
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
|
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Publish plugins to Release branch
|
|
run: npm run publish
|