feat: init
This commit is contained in:
39
.gitea/workflows/tag.yml
Normal file
39
.gitea/workflows/tag.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
|
||||
jobs:
|
||||
trigger_tag:
|
||||
name: Trigger Tag Function
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/master'
|
||||
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
|
||||
Reference in New Issue
Block a user