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