Skip to content

Commit

Permalink
修改 pacakge.json; 增加 release-pacakge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IcePower committed Jun 28, 2024
1 parent 9688243 commit ce4d461
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ET Package

on:
workflow_dispatch:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"com.tuyoogame.yooasset": "2.1.1"
},
"gitDependencies": {
"cn.etetet.core": "https://github.com/ET-Packages/cn.etetet.core.git#0.0.1",
"cn.etetet.yooassets": "https://github.com/ET-Packages/cn.etetet.yooassets.git#0.0.1"
"cn.etetet.core": "0.0.5",
"cn.etetet.yooassets": "0.0.1"
},
"publishConfig":
{
"registry": "https://npm.pkg.github.com/@ET-Packages"
}
}

0 comments on commit ce4d461

Please sign in to comment.