editorconfig-vscode
editorconfig-vscode copied to clipboard
chore(release): add semantic-release
Please fill in this template.
- [X] Use a meaningful title for the pull request.
- [X] Use meaningful commit messages.
- [X] Run
tscw/o errors (same asnpm run build). - [X] Run
npm run lintw/o errors.
Testing
I've tested the configuration with semantic-release --dry-run which completes successfully until the final push step (which is expected since pushing to main is restricted).
Also I've tested the GitHub action locally with act. Logs below:
~ act -j release
time="2025-03-24T18:09:59+03:00" level=info msg="Using docker host 'npipe:////./pipe/docker_engine', and daemon socket 'npipe:////./pipe/docker_engine'"
time="2025-03-24T18:09:59+03:00" level=info msg="deleted cache: &{ID:1 Key:node-cache-linux-x64-npm-ffd561a3fbdbcb78781b8ae861656ad3a4f68f0e9b05260ed92f6188b44ea680 Version:b3f0cb83629d634645a5146420c017462ebb5229bd60271a7a86e489a6066469 Size:34350071 Complete:true UsedAt:1742827956 CreatedAt:1742827767}" module=artifactcache
[Release/Release] βοΈ Run Set up job
[Release/Release] π Start image=catthehacker/ubuntu:act-latest
[Release/Release] π³ docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Release/Release] π³ docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[Release/Release] π³ docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[Release/Release] π³ docker exec cmd=[node --no-warnings -e console.log(process.execPath)] user= workdir=
[Release/Release] β
Success - Set up job
[Release/Release] βοΈ git clone 'https://github.com/actions/setup-node' # ref=v4
[Release/Release] βοΈ Run Main Checkout
[Release/Release] π³ docker cp src=E:\Work\editorconfig\editorconfig-vscode\. dst=/mnt/e/Work/editorconfig/editorconfig-vscode
[Release/Release] β
Success - Main Checkout
[Release/Release] βοΈ Run Main Setup Node.js
[Release/Release] π³ docker cp src=C:\Users\Eugene\.cache\act/actions-setup-node@v4/ dst=/var/run/act/actions/actions-setup-node@v4/
[Release/Release] π³ docker exec cmd=[/opt/acttoolcache/node/18.20.7/x64/bin/node /var/run/act/actions/actions-setup-node@v4/dist/setup/index.js] user= workdir=
| Attempt to resolve LTS alias from manifest...
| Found in cache @ /opt/hostedtoolcache/node/22.14.0/x64
[Release/Release] β ::group::Environment details
| node: v22.14.0
| npm: 10.9.2
| yarn:
[Release/Release] β ::endgroup::
| [command]/opt/hostedtoolcache/node/22.14.0/x64/bin/npm config get cache
| /root/.npm
[Release/Release] βοΈ ***
| Cache Size: ~33 MB (34312380 B)
| [command]/usr/bin/tar -xf /tmp/0dc89b5c-dbef-4db2-bdcc-88c1d58cb445/cache.tzst -P -C /mnt/e/Work/editorconfig/editorconfig-vscode --use-compress-program unzstd
| Cache restored successfully
| Cache restored from key: node-cache-linux-x64-npm-ffd561a3fbdbcb78781b8ae861656ad3a4f68f0e9b05260ed92f6188b44ea680
[Release/Release] β add-matcher /run/act/actions/actions-setup-node@v4/.github/tsc.json
[Release/Release] β add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-stylish.json
[Release/Release] β add-matcher /run/act/actions/actions-setup-node@v4/.github/eslint-compact.json
[Release/Release] β
Success - Main Setup Node.js
[Release/Release] βοΈ ::set-output:: node-version=v22.14.0
[Release/Release] βοΈ ::set-output:: cache-hit=true
[Release/Release] βοΈ ::add-path:: /opt/hostedtoolcache/node/22.14.0/x64/bin
[Release/Release] βοΈ Run Main Install dependencies
[Release/Release] π³ docker exec cmd=[bash -e /var/run/act/workflow/2] user= workdir=
| npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you
want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
| npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
| npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
| npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
| npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
| npm warn deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
|
| added 627 packages, and audited 843 packages in 14s
|
| 193 packages are looking for funding
| run `npm fund` for details
|
| found 0 vulnerabilities
[Release/Release] β
Success - Main Install dependencies
[Release/Release] βοΈ Run Main Build
[Release/Release] π³ docker exec cmd=[bash -e /var/run/act/workflow/3] user= workdir=
|
| > [email protected] prebuild
| > npm run clean
|
|
| > [email protected] clean
| > rimraf out
|
|
| > [email protected] build
| > tsc
|
|
| > [email protected] postbuild
| > cp -r src/test/suite/fixtures out/test/suite && cp -r src/test/untitled-suite/fixtures out/test/untitled-suite && cp src/DefaultTemplate.editorconfig out
|
[Release/Release] β
Success - Main Build
[Release/Release] βοΈ Run Main Package Extension
[Release/Release] π³ docker exec cmd=[bash -e /var/run/act/workflow/4] user= workdir=
| Executing prepublish script 'npm run vscode:prepublish'...
|
| > [email protected] vscode:prepublish
| > npm run build
|
|
| > [email protected] prebuild
| > npm run clean
|
|
| > [email protected] clean
| > rimraf out
|
|
| > [email protected] build
| > tsc
|
|
| > [email protected] postbuild
| > cp -r src/test/suite/fixtures out/test/suite && cp -r src/test/untitled-suite/fixtures out/test/untitled-suite && cp src/DefaultTemplate.editorconfig out
|
| Files included in the VSIX:
| EditorConfig-0.17.2.vsix
| ββ [Content_Types].xml
| ββ extension.vsixmanifest
| ββ extension/
| ββ DEVELOPER.md [0.72 KB]
| ββ EditorConfig_icon.png [7.72 KB]
| ββ LICENSE.md [1.09 KB]
| ββ ThirdPartyNotices.txt [1.88 KB]
| ββ changelog.md
| ββ editorconfig.language-configuration.json [0.46 KB]
| ββ package.json [4.74 KB]
| ββ readme.md
| ββ release.config.js [1.45 KB]
| ββ node_modules/
| β ββ @one-ini/ (5 files) [107.9 KB]
| β ββ balanced-match/ (5 files) [6.78 KB]
| β ββ commander/ (13 files) [163.83 KB]
| β ββ editorconfig/ (29 files) [199.71 KB]
| β ββ semver/ (52 files) [94.41 KB]
| ββ out/
| β ββ DefaultTemplate.editorconfig [0.69 KB]
| β ββ DocumentWatcher.js [4.25 KB]
| β ββ EditorConfigCompletionProvider.js [7 KB]
| β ββ api.js [4.84 KB]
| β ββ editorConfigMain.js [1.64 KB]
| β ββ commands/ (1 file) [5.04 KB]
| β ββ transformations/ (5 files) [6.96 KB]
| ββ syntaxes/
| ββ editorconfig.tmLanguage.json [9.97 KB]
|
| => Run vsce ls --tree to see all included files.
|
| Packaged: /mnt/e/Work/editorconfig/editorconfig-vscode/EditorConfig-0.17.2.vsix (127 files, 231.95 KB)
[Release/Release] π§ ::warning::The latest version of @vscode/vsce is 3.3.0 and you have 3.2.2.%0AUpdate it now: npm install
-g @vscode/vsce
[Release/Release] β
Success - Main Package Extension
[Release/Release] βοΈ Run Main Semantic Release
[Release/Release] π³ docker exec cmd=[bash -e /var/run/act/workflow/5] user= workdir=
| [3:10:37 PM] [semantic-release] βΊ βΉοΈ Running semantic-release version 24.2.3
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "verifyConditions" from "@semantic-release/changelog"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "verifyConditions" from "@semantic-release/npm"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "verifyConditions" from "@semantic-release/git"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "verifyConditions" from "@semantic-release/github"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "prepare" from "@semantic-release/changelog"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "prepare" from "@semantic-release/npm"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "prepare" from "@semantic-release/git"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "publish" from "@semantic-release/npm"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "publish" from "@semantic-release/github"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "addChannel" from "@semantic-release/npm"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "addChannel" from "@semantic-release/github"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "success" from "@semantic-release/github"
| [3:10:38 PM] [semantic-release] βΊ βοΈ Loaded plugin "fail" from "@semantic-release/github"
| [3:10:41 PM] [semantic-release] βΊ βΉοΈ This test run was triggered on the branch refs/tags/v0.17.2, while semantic-release is configured to only publish from main, therefore a new version wonβt be published.
[Release/Release] β
Success - Main Semantic Release
[Release/Release] βοΈ Run Post Setup Node.js
[Release/Release] π³ docker exec cmd=[/opt/acttoolcache/node/18.20.7/x64/bin/node /var/run/act/actions/actions-setup-node@v4/dist/cache-save/index.js] user= workdir=
| [command]/usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /mnt/e/Work/editorconfig/editorconfig-vscode --files-from manifest.txt --use-compress-program zstdmt
| Cache Size: ~33 MB (34321006 B)
| Cache saved successfully
| Cache saved with the key: node-cache-Linux-x64-npm-ffd561a3fbdbcb78781b8ae861656ad3a4f68f0e9b05260ed92f6188b44ea680
[Release/Release] β
Success - Post Setup Node.js
[Release/Release] βοΈ Run Complete job
[Release/Release] Cleaning up container for job Release
[Release/Release] β
Success - Complete job
[Release/Release] π Job succeeded
[!NOTE] I'll keep this PR in draft status (although it's ready for merge) to avoid potentially disrupting changelogs while we can discuss if there's a more reliable way to test the semantic-release configuration.
Part of #406