Move to new publish process
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Andrey Sitnik · committed by Andrey Sitnik · parent a626ca4 · Browse files · 3 files·+21 added−59 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+21 added−59 removed
- other:+21 added−59 removed
Provenance
- Commit
eabcade- Tree
edc8c12- Author
Andrey Sitnik <andrey@sitnik.es>- Committer
Andrey Sitnik <andrey@sitnik.es>- Parent
a626ca4
3 files changed+21 added−59 removed
modified:.github/workflows/release.yml+21 added-33 removed
1234567691011789101112131416171819202122232425262728293031323334353637383915161741424344181920212223242526272829303132name: Releaseon: push: tags: - '*'permissions: contents: writejobs: release: name: Release On Tag if: startsWith(github.ref, 'refs/tags/') publish: runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - name: Checkout the repository uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - name: Extract the changelog id: changelog run: | TAG_NAME=${GITHUB_REF/refs\/tags\//} READ_SECTION=false CHANGELOG="" while IFS= read -r line; do if [[ "$line" =~ ^#+\ +(.*) ]]; then if [[ "${BASH_REMATCH[1]}" == "$TAG_NAME" ]]; then READ_SECTION=true elif [[ "$READ_SECTION" == true ]]; then break fi elif [[ "$READ_SECTION" == true ]]; then CHANGELOG+="$line"$'\n' fi done < "CHANGELOG.md" CHANGELOG=$(echo "$CHANGELOG" | awk '/./ {$1=$1;print}') echo "changelog_content<<EOF" >> $GITHUB_OUTPUT echo "$CHANGELOG" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - name: Create the release if: steps.changelog.outputs.changelog_content != '' uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0 - name: Clean npm package uses: ai/clean-npm-project@0360e11d62a76db910e3035fad44c6c07d5348c4 #v0.1.0 with: name: ${{ github.ref_name }} body: '${{ steps.changelog.outputs.changelog_content }}' draft: false prerelease: false clean-docs: true clean-comments: true - name: Publish npm package run: npm stage publish working-directory: cleaned-project/ release: runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - name: Checkout the repository uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - name: Clean npm package uses: ai/copy-changelog-to-release@907fd240473b0935f716efdedf9fa660ba874737 # 0.1.0modified:package.json-5 removed
57 unmodified lines58596061626263646542 unmodified lines10810911011111311411511611211357 unmodified lines "@size-limit/file": "^12.1.0", "@size-limit/webpack": "^12.1.0", "actions-up": "^1.14.3", "better-node-test": "^0.8.4", "clean-publish": "^7.1.0", "eslint-plugin-prefer-let": "^4.2.2", "nope-id": "^1.3.0", "oxlint": "^1.70.0", "oxlint-tsgolint": "^0.23.0",42 unmodified lines } ], "engines": { "node": "^18 || >=20" }, "clean-publish": { "cleanDocs": true, "cleanComments": true }}modified:pnpm-lock.yaml-21 removed
30 unmodified lines31 version: 1.14.332 better-node-test:33 specifier: ^0.8.434 version: 0.8.435- clean-publish:36- specifier: ^7.1.037- version: 7.1.035 eslint-plugin-prefer-let:36 specifier: ^4.2.237 version: 4.2.238 nope-id:640 unmodified lines679 chrome-trace-event@1.0.4:680 resolution: {integrity: sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==}681 engines: {node: '>=6.0'}682 686- clean-publish@7.1.0:687- resolution: {integrity: sha512-fnsFHW6fIq7Sr5Pf9YUsxB1up5pEA13DHg4Q/bZdphWssmIUuKV7G5Kaq2Q0X6UsCFm//uFbONOWTi7m4DvMTg==}688- engines: {node: '>= 22.0.0'}689- hasBin: true690-683 commander@2.20.3:684 resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}685 686 convert-source-map@2.0.0:379 unmodified lines1066 tinybench@6.0.2:1067 resolution: {integrity: sha512-FlHoQpcFvCzeXK5kVPvV7IVgW/hs/B36QWTz876iSdeJguBDfdTSRQmYmaHX+fQNt4hp+gEFB2XXw+8hT4/y8A==}1068 engines: {node: '>=20.0.0'}1069 1078- tinyexec@1.2.4:1079- resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==}1080- engines: {node: '>=18'}1081-1070 tinyglobby@0.2.17:1071 resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}1072 engines: {node: '>=12.0.0'}1073 610 unmodified lines1684 caniuse-lite@1.0.30001799: {}1685 1686 chrome-trace-event@1.0.4: {}1687 1700- clean-publish@7.1.0:1701- dependencies:1702- lilconfig: 3.1.31703- picomatch: 4.0.41704- tinyexec: 1.2.41705- tinyglobby: 0.2.171706-1688 commander@2.20.3: {}1689 1690 convert-source-map@2.0.0: {}1691 277 unmodified lines1969 source-map-support: 0.5.211970 1971 tinybench@6.0.2: {}1972 1992- tinyexec@1.2.4: {}1993-1973 tinyglobby@0.2.17:1974 dependencies:1975 fdir: 6.5.0(picomatch@4.0.4)1976 picomatch: 4.0.485 unmodified lines