40 lines
921 B
YAML
40 lines
921 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
|
|
jobs:
|
|
trigger_tag:
|
|
name: Trigger Tag Function
|
|
runs-on: ubuntu-latest
|
|
if: github.ref == 'refs/heads/main'
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.RELEASE_TOKEN }}
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "18"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
apt install -y git
|
|
npm install --frozen-lockfile --ignore-scripts --workspaces=false
|
|
|
|
- name: Publish Package
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
GIT_AUTHOR_NAME: "CI Bot"
|
|
GIT_AUTHOR_EMAIL: "ci@git.bga.sh"
|
|
GIT_COMMITTER_NAME: "CI Bot"
|
|
GIT_COMMITTER_EMAIL: "ci@git.bga.sh"
|
|
run: npm run publish
|