Skip to content

Commit

Permalink
fix: unnecessary files in package (#4)
Browse files Browse the repository at this point in the history
(also added configuration for release workflow with GitHub Actions, so
this release should be published automatically)
  • Loading branch information
lewxdev authored Mar 15, 2024
1 parent 6d03d15 commit 047294e
Show file tree
Hide file tree
Showing 6 changed files with 2,860 additions and 5 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: 🚀 Publish to the Visual Studio Marketplace
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check it
uses: actions/checkout@v4

- name: Prepare it
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install it
run: npm clean-install

- name: Package it
id: package
run: |
npm exec vsce package
echo ::set-output filename=vsix::$(ls *.vsix)
- name: Publish it
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: npm exec vsce publish -- --packagePath ${{ steps.package.outputs.filename }}

- name: Configure it
id: config
run: |
echo ::set-output name=version::$(node -p "require('./package.json').version")
echo ::set-output name=preview::$(node -p "require('./package.json').preview")
- name: Release it
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.config.outputs.version }}
release_name: v${{ steps.config.outputs.version }}
prerelease: ${{ steps.config.outputs.preview == 'true' }}
body: |
# v${{ steps.config.outputs.version }}
see [CHANGELOG.md](CHANGELOG.md) for details on this release
- name: Upload it
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_name: ${{ steps.package.outputs.filename }}
asset_path: ${{ steps.package.outputs.filename }}
asset_content_type: application/zip
11 changes: 11 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# run 'vsce ls' to verify only the correct files are included
# learn more: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#using-.vscodeignore

**/*
!static/
!theme/
!package.json
!package.nls.json
!CHANGELOG.md
!LICENSE.md
!README.md
19 changes: 15 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,29 @@ and this project adheres to
- Update icons to use a `.woff` icon font rather than `.svg` files to make it
easier to create new icon theme contributions with more customization

## [0.1.2] - 2024-03-15

### Fixed

- Unnecessary files included in the extension package
([#4](https://github.com/lewxdev/vscode-glyph/pull/4))

## [0.1.1] - 2024-03-15

### Fixed

- Incorrect branch for the initial release (#3)
- Missing updated content in `CHANGELOG.md` for the 0.1.0 release (#3)
- Incorrect branch for the initial release
([#3](https://github.com/lewxdev/vscode-glyph/pull/3))
- Missing updated content in `CHANGELOG.md` for the 0.1.0 release
([#3](https://github.com/lewxdev/vscode-glyph/pull/3))

## [0.1.0] - 2024-03-15

### Added

- New **Glyph (Minimal)** icon theme contribution (just the most essential icons
to ensure everything is working as expected) (#2)
to ensure everything is working as expected)
([#2](https://github.com/lewxdev/vscode-glyph/pull/2))
- All icons made available for the file icon theme
- Initial contribution-forward setup for the repository (#1)
- Initial contribution-forward setup for the repository
([#1](https://github.com/lewxdev/vscode-glyph/pull/1))
Binary file removed bun.lockb
Binary file not shown.
Loading

0 comments on commit 047294e

Please sign in to comment.