mirror of
https://github.com/fluencelabs/aqua-vscode
synced 2025-04-24 16:12:14 +00:00
fix(ci): Update publish workflow (#80)
* Update workflow, bump vscode * Remove BRANCH_NAME * Change name
This commit is contained in:
parent
1c5d01cd97
commit
0ff680eb4a
34
.github/workflows/publish.yml
vendored
34
.github/workflows/publish.yml
vendored
@ -1,17 +1,14 @@
|
||||
name: 'build and release vscode syntax highlight'
|
||||
name: 'Build and release Aqua VSCE'
|
||||
|
||||
on:
|
||||
push:
|
||||
# uncomment to release only on tags starting with 'v'
|
||||
# tags:
|
||||
# - "v*"
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
npm-publish:
|
||||
publish:
|
||||
name: 'Publish'
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
@ -19,20 +16,9 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
### Extract branch name
|
||||
- name: Extract branch name
|
||||
if: github.event_name != 'pull_request'
|
||||
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
|
||||
id: extract_branch
|
||||
|
||||
- name: Extract branch name
|
||||
if: github.event_name == 'pull_request'
|
||||
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
### Calculate FINAL_VERSION
|
||||
- name: Install jq
|
||||
run: sudo apt-get update && sudo apt-get --yes --force-yes install jq
|
||||
|
||||
@ -46,30 +32,30 @@ jobs:
|
||||
echo "PKG_NAME=$PKG_NAME" | tee -a $GITHUB_ENV
|
||||
echo "PKG_FILE=${PKG_NAME}-${VERSION}.vsix" | tee -a $GITHUB_ENV
|
||||
|
||||
### Set version
|
||||
- name: Set version to ${{ env.FINAL_VERSION }}
|
||||
run: |
|
||||
yarn version --new-version ${{ env.FINAL_VERSION }} --no-git-tag-version
|
||||
|
||||
### Pack vsix package
|
||||
- uses: actions/setup-node@v1
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '15'
|
||||
node-version: '18'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: build package
|
||||
|
||||
- name: Package and publish
|
||||
run: |
|
||||
npm i
|
||||
npm i -g vsce
|
||||
vsce package
|
||||
vsce publish -p ${{ secrets.VSCE_PAT }}
|
||||
|
||||
### create release
|
||||
- uses: softprops/action-gh-release@v1
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ env.FINAL_VERSION }}
|
||||
name: Visual Studio Code syntax highlight ${{ env.FINAL_VERSION }}
|
||||
name: Aqua VSCE ${{ env.FINAL_VERSION }}
|
||||
body: |
|
||||
Version: ${{ env.FINAL_VERSION }}
|
||||
files: |
|
||||
|
5354
package-lock.json
generated
5354
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -17,7 +17,7 @@
|
||||
"aqua vscode extension"
|
||||
],
|
||||
"engines": {
|
||||
"vscode": "^1.50.0"
|
||||
"vscode": "^1.63.0"
|
||||
},
|
||||
"activationEvents": [
|
||||
"onLanguage:aqua"
|
||||
|
Loading…
x
Reference in New Issue
Block a user