Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
shijinn520 committed Jun 29, 2024
1 parent ae25218 commit d0b53dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
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
id: release
with:
release-type: node
package-name: kritor-proto
default-branch: main
# 检出代码
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
],
"scripts": {
"build": "node build.js",
"pub": "npm publish --access public"
"publish": "npm publish --access public"
}
}

0 comments on commit d0b53dc

Please sign in to comment.