Skip to content

Commit

Permalink
build: package.json add repository
Browse files Browse the repository at this point in the history
  • Loading branch information
郑培鑫 committed Feb 15, 2024
1 parent ffa8335 commit a142ddb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: release

on:
push:
branches:
- dev

permissions:
contents: write
pull-requests: write
name: release-please

jobs:
release-please:
release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node
target-branch: dev
# The logic below handles the npm publication:
- uses: actions/checkout@v4
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
Expand All @@ -29,11 +29,13 @@ jobs:
with:
version: 8
if: ${{ steps.release.outputs.release_created }}
- run: pnpm i
- name: bulid
run: |
pnpm i
pnpm build
if: ${{ steps.release.outputs.release_created }}
- run: pnpm build
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
- name: publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"url": "https://github.com/zero-one-code/vue-default-page/issues"
},
"homepage": "https://github.com/zero-one-code/vue-default-page#readme",
"repository": {
"type": "git",
"url": "https://github.com/zero-one-code/vue-default-page.git"
},
"type": "module",
"files": [
"dist"
Expand Down

0 comments on commit a142ddb

Please sign in to comment.