chore: store built vsix #1
Workflow file for this run
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
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
check-translations: | ||
name: Translation Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run locale --update-locales | ||
- run: | | ||
CHANGES=$(git diff --name-only) | ||
if [ -z "$CHANGES" ] | ||
then | ||
echo "No translations needed" | ||
else | ||
echo "The following files need translations:" | ||
echo $CHANGES | ||
exit 1 | ||
fi | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npx @vscode/vsce package | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: *.vsix | ||
retention-days: 5 |