Skip to content

update renovate config to make unstable updates for fluencelabs packa… #67

update renovate config to make unstable updates for fluencelabs packa…

update renovate config to make unstable updates for fluencelabs packa… #67

Workflow file for this run

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@v2
- 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@v1
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@v1
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