Merge pull request #1223 from emmanuel-ferdman/main #798
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: Deploy server and extension | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install shellcheck and shfmt (used for testing) | |
run: sudo apt-get install -y shellcheck shfmt | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
cache: "pnpm" | |
- run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "skovhus" | |
name: Configure for pushing git tags | |
- run: bash scripts/release-client.sh | |
name: Deploy VS Code extension | |
env: | |
VSCE_TOKEN: ${{ secrets.VSCE_PERSONAL_ACCESS_TOKEN }} | |
- run: bash scripts/release-server.sh | |
name: Deploy server | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |