fixes resolver deps #55
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, test and publish extension | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies and update @flyde/* packages | |
run: | | |
npm ci | |
npm update --scope=@flyde\ | |
- name: Commit package.json if updated | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
git add package.json package-lock.json | |
git diff-index --quiet HEAD || git commit -m "Update @flyde/* packages" | |
git push origin main | |
- name: Build extension | |
run: npm run build | |
- name: Test extension | |
run: xvfb-run -a npm run test | |
- name: Bump minor version | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
npm version minor -m "Bump version to %s" | |
git push origin main | |
- name: Package and publish extension | |
env: | |
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} | |
run: | | |
npm install -g @vscode/vsce | |
vsce publish -p $VSCE_TOKEN |