diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 9cf1eda..b19fb5e 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -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 \ No newline at end of file + - 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