From 7c7a0277dcfff7508e8d8848071ead80a1a36dbb Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 9 Aug 2026 19:22:53 +0200 Subject: [PATCH 1/2] Assets: publish to npm when a release is published The npm package only ever goes out by hand through workflow_dispatch, and then only as a 0.0.0-- snapshot under the master tag. Tagging a release publishes nothing, so npm latest still points at 7.1.0 from August while composer is at v7.2.0. Anyone taking the assets from npm is missing every fix since, the autosubmit ones among them - and the filter form now carries data-naja-unique from the template while the JS half of that fix is unavailable. Publishing now also runs on a published release, taking the version from the tag and going out under latest. --- .github/workflows/assets.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml index b9a5d6d3..18c10ba6 100644 --- a/.github/workflows/assets.yml +++ b/.github/workflows/assets.yml @@ -3,6 +3,9 @@ name: "Assets" on: workflow_dispatch: + release: + types: ["published"] + push: branches: ["master"] @@ -50,3 +53,25 @@ jobs: - run: npm publish --provenance --access public --tag master env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + publish-release: + runs-on: ubuntu-latest + needs: [build] + if: github.event_name == 'release' + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + name: dist-files + path: dist/ + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + registry-url: 'https://registry.npmjs.org' + - run: npm version ${GITHUB_REF_NAME#v} --no-git-tag-version --allow-same-version + - run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 2234fb2a46173e433a21eae4b31b8b0680d168a1 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 10 Aug 2026 12:05:10 +0200 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/assets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml index 18c10ba6..6a3337d1 100644 --- a/.github/workflows/assets.yml +++ b/.github/workflows/assets.yml @@ -71,7 +71,7 @@ jobs: with: node-version: '22.x' registry-url: 'https://registry.npmjs.org' - - run: npm version ${GITHUB_REF_NAME#v} --no-git-tag-version --allow-same-version + - run: npm version "${GITHUB_REF_NAME#v}" --no-git-tag-version --allow-same-version - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}