diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index de21747..056d9a3 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -81,59 +81,61 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - publish-github-docker: - runs-on: ${{ matrix.os }} - container: - image: node:${{ matrix.node_version }}-alpine - strategy: - fail-fast: false - matrix: - node_version: - - 16 - - 18 - - 20 - - 21 - os: - - buildjet-2vcpu-ubuntu-2204 - - buildjet-4vcpu-ubuntu-2204-arm - steps: - - run: apk add build-base git python3 wget github-cli - # https://github.com/actions/runner/issues/801#issuecomment-1374967227 - - run: | - apk add gcompat - sed -i "s:ID=alpine:ID=NotpineForGHA:" /etc/os-release - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.release.tag_name }}${{ github.event.inputs.name }} - - uses: c-hive/gha-yarn-cache@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - name: Install modules - run: yarn install --ignore-scripts - - name: Build - id: build - run: | - node publish.js - cd bin-package - echo "asset=$(echo *.tar.gz)" >> "$GITHUB_OUTPUT" - - name: Upload release asset - run: | - git config --global --add safe.directory $(pwd) - gh release upload ${{ github.event.release.tag_name }}${{ github.event.inputs.name }} bin-package/${{ steps.build.outputs.asset }} --clobber - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # The # WORKAROUND below doesn't work anymore, actions are forced to use a node20 runtime that doesn't work on alpine + # publish-github-docker: + # runs-on: ${{ matrix.os }} + # container: + # image: node:${{ matrix.node_version }}-alpine + # strategy: + # fail-fast: false + # matrix: + # node_version: + # - 16 + # - 18 + # - 20 + # - 21 + # os: + # - buildjet-2vcpu-ubuntu-2204 + # - buildjet-4vcpu-ubuntu-2204-arm + # steps: + # - run: apk add build-base git python3 wget github-cli + # # WORKAROUND + # # https://github.com/actions/runner/issues/801#issuecomment-1374967227 + # - run: | + # apk add gcompat + # sed -i "s:ID=alpine:ID=NotpineForGHA:" /etc/os-release + # - uses: actions/checkout@v4 + # with: + # ref: ${{ github.event.release.tag_name }}${{ github.event.inputs.name }} + # - uses: c-hive/gha-yarn-cache@v2 + # - uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: stable + # override: true + # - name: Install modules + # run: yarn install --ignore-scripts + # - name: Build + # id: build + # run: | + # node publish.js + # cd bin-package + # echo "asset=$(echo *.tar.gz)" >> "$GITHUB_OUTPUT" + # - name: Upload release asset + # run: | + # git config --global --add safe.directory $(pwd) + # gh release upload ${{ github.event.release.tag_name }}${{ github.event.inputs.name }} bin-package/${{ steps.build.outputs.asset }} --clobber + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish-npm: if: '${{ github.event.release.tag_name }}' needs: - publish-github - - publish-github-docker + # - publish-github-docker runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: ${{ github.event.release.tag_name }} - uses: actions/setup-node@v4 diff --git a/yarn.lock b/yarn.lock index 0ac5f42..1708d74 100644 --- a/yarn.lock +++ b/yarn.lock @@ -908,7 +908,7 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -braces@^3.0.1: +braces@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== @@ -2164,12 +2164,12 @@ merge-stream@^2.0.0: integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== micromatch@^4.0.2, micromatch@^4.0.4: - version "4.0.4" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9" - integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg== + version "4.0.8" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== dependencies: - braces "^3.0.1" - picomatch "^2.2.3" + braces "^3.0.3" + picomatch "^2.3.1" mime-db@1.51.0: version "1.51.0" @@ -2366,6 +2366,11 @@ picomatch@^2.0.4, picomatch@^2.2.3: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== +picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + pirates@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87"