-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Closes #73 1. Added a release guide to CONTRIBUTING.md. 2. Added a Github action that will publish release to both Github releases and VSCode marketplace. 3. Bumped the version to v1.0.0. The changes are huge enough to finally call this "v1" :) 4. Made some cosmetic changes to the documentation.
- Loading branch information
Showing
6 changed files
with
286 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Release to VSCode Marketplace and GitHub Releases | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
# Workflow need write access to the repository to create a release | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: | | ||
# Install VSCE globally | ||
yarn global add @vscode/vsce | ||
# Install dependencies in the root directory | ||
yarn install --ignore-scripts --frozen-lockfile | ||
# Install dependencies in the client directory | ||
cd client | ||
yarn install --ignore-scripts --frozen-lockfile | ||
# Install dependencies in the server directory | ||
cd ../server | ||
yarn install --ignore-scripts --frozen-lockfile | ||
# ESBuild ignores type checking, so we need to run it separately | ||
# before running ESBuild | ||
- name: Check TypeScript types | ||
run: yarn test-compile | ||
|
||
- name: Run ESLint | ||
run: yarn lint | ||
|
||
# Run ESBuild & generate VSIX file | ||
- name: Pack files with VSCE | ||
run: yarn generate-vsix | ||
|
||
- name: Publish to VSCode Marketplace | ||
run: vsce publish -p ${{ secrets.VSCE_TOKEN }} -i vscode-adblock.vsix | ||
|
||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
vscode-adblock.vsix | ||
draft: false | ||
prerelease: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.