From d0b53dc13b6eda20a7d95d114f1530a568f1bba1 Mon Sep 17 00:00:00 2001 From: CakmLexi Date: Sat, 29 Jun 2024 14:52:12 +0800 Subject: [PATCH] fix: build error --- .github/workflows/npm-publish.yml | 8 +++++--- package.json | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 65449b5..9fd19d8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,12 +1,13 @@ name: Release and Publish - on: push: branches: - main - +permissions: + contents: write + pull-requests: write jobs: - publish: + release-please: runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v3 @@ -14,6 +15,7 @@ jobs: with: release-type: node package-name: kritor-proto + default-branch: main # 检出代码 - uses: actions/checkout@v4 if: ${{ steps.release.outputs.release_created }} diff --git a/package.json b/package.json index 3e926a1..e7d827e 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ ], "scripts": { "build": "node build.js", - "pub": "npm publish --access public" + "publish": "npm publish --access public" } } \ No newline at end of file