fix(deps): update vscode to 1.94.0 (#125) #87
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
name: 'Build and release Aqua VSCE' | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: 'Publish' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install jq | |
run: sudo apt-get update && sudo apt-get --yes --force-yes install jq | |
- name: Get version from npm and increment | |
run: | | |
VERSION="1.0.${{ github.run_number }}" | |
PKG_NAME="$(cat package.json | jq -r .name)" | |
# save info to env | |
echo "FINAL_VERSION=$VERSION" | tee -a $GITHUB_ENV | |
echo "PKG_NAME=$PKG_NAME" | tee -a $GITHUB_ENV | |
echo "PKG_FILE=${PKG_NAME}-${VERSION}.vsix" | tee -a $GITHUB_ENV | |
- name: Set version to ${{ env.FINAL_VERSION }} | |
run: | | |
yarn version --new-version ${{ env.FINAL_VERSION }} --no-git-tag-version | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Package and publish | |
run: | | |
npm i | |
npm i -g vsce | |
vsce package | |
vsce publish -p ${{ secrets.VSCE_PAT }} | |
- name: Create release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.FINAL_VERSION }} | |
name: Aqua VSCE ${{ env.FINAL_VERSION }} | |
body: | | |
Version: ${{ env.FINAL_VERSION }} | |
files: | | |
${{ env.PKG_FILE }} | |
draft: true | |
prerelease: false |