Create release.yml

This commit is contained in:
Elysia
2025-07-12 21:21:30 +07:00
parent 38c7a02668
commit bbfd82fd01

26
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Release
on:
push:
tags:
- '3*' # Trigger on version 3.x.x tags
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Publish to NPM
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}