This commit is contained in:
@@ -13,13 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: npm pack
|
||||
- run: mv js-util*.tgz js-util.tgz
|
||||
- run: git log $(git describe --tags --abbrev=0 HEAD~1)..HEAD --oneline > changelog.txt
|
||||
- uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
make_latest: true
|
||||
body_path: changelog.txt
|
||||
files: js-util.tgz
|
||||
- run: jq --arg version $(git describe --tags --abbrev=0 HEAD) '.version=$version' package.json
|
||||
- run: npm config set registry https://gitea.sugoidogo.com/api/packages/sugoidogo/npm/
|
||||
- run: npm config set -- '//gitea.example.com/api/packages/sugoidogo/npm/:_authToken' "${{ env.PACKAGES_KEY }}"
|
||||
- run: npm publish
|
||||
|
||||
Reference in New Issue
Block a user