mirror of
https://github.com/fluencelabs/aqua-vscode
synced 2025-06-01 09:31:20 +00:00
parent
5f848e100c
commit
a73172e45f
15
.github/workflows/vscode_highlight.yml
vendored
15
.github/workflows/vscode_highlight.yml
vendored
@ -1,9 +1,5 @@
|
|||||||
name: "build vscode syntax highlight"
|
name: "build vscode syntax highlight"
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ./vscode-highlight
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
@ -35,6 +31,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get version from npm and increment
|
- name: Get version from npm and increment
|
||||||
run: |
|
run: |
|
||||||
|
cd vscode-highlight
|
||||||
# install semver and add it to PATH
|
# install semver and add it to PATH
|
||||||
yarn global add semver
|
yarn global add semver
|
||||||
PATH="$(yarn global bin):$PATH"
|
PATH="$(yarn global bin):$PATH"
|
||||||
@ -66,18 +63,22 @@ jobs:
|
|||||||
# save info to env
|
# save info to env
|
||||||
echo "FINAL_VERSION=$MAX_VERSION" | tee -a $GITHUB_ENV
|
echo "FINAL_VERSION=$MAX_VERSION" | tee -a $GITHUB_ENV
|
||||||
echo "PKG_NAME=$PKG_NAME" | tee -a $GITHUB_ENV
|
echo "PKG_NAME=$PKG_NAME" | tee -a $GITHUB_ENV
|
||||||
echo "PKG_FILE=${PKG_NAME}-${FINAL_VERSION}.tgz" | tee -a $GITHUB_ENV
|
echo "PKG_FILE=vscode-highlight/${PKG_NAME}-${FINAL_VERSION}.tgz" | tee -a $GITHUB_ENV
|
||||||
|
|
||||||
### Set version
|
### Set version
|
||||||
- name: Set version to ${{ env.FINAL_VERSION }}
|
- name: Set version to ${{ env.FINAL_VERSION }}
|
||||||
run: yarn version --new-version ${{ env.FINAL_VERSION }} --no-git-tag-version
|
run: |
|
||||||
|
cd vscode-highlight
|
||||||
|
yarn version --new-version ${{ env.FINAL_VERSION }} --no-git-tag-version
|
||||||
|
|
||||||
### Pack npm package
|
### Pack npm package
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: "15"
|
node-version: "15"
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
- run: npm pack
|
- run: |
|
||||||
|
cd vscode-highlight
|
||||||
|
npm pack
|
||||||
|
|
||||||
### Create a pre-release
|
### Create a pre-release
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
Loading…
x
Reference in New Issue
Block a user