chore: 更新依赖

This commit is contained in:
IamFurina 2025-07-03 16:06:42 +08:00 committed by ImFurina
parent fc66dc4de2
commit f617b066c9
3 changed files with 5301 additions and 23 deletions

View File

@ -1,36 +1,21 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created name: Publish Package to npmjs
# 去去去For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on: on:
release: release:
types: [created] types: [published]
jobs: jobs:
build: build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
publish-gpr:
needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read
packages: write id-token: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: '20.x'
registry-url: https://registry.npmjs.org registry-url: 'https://registry.npmjs.org'
- run: npm ci - run: npm ci
- run: npm publish - run: npm publish --provenance --access public
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0
.npmrc Normal file
View File

5293
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff