fix: keep linkedEditing
working when tag name contains .
(#2570)
#179
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
name: Tagged Production Deploys for VS Code | |
on: | |
push: | |
tags: | |
- "extensions-*" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18.x" | |
registry-url: "https://registry.npmjs.org" | |
cache: pnpm | |
# Ensure everything is compiling | |
- run: "pnpm install" | |
- run: "pnpm build" | |
- run: "pnpm bootstrap" | |
# Lets us use one-liner JSON manipulations the package.json files | |
- run: "npm install -g json" | |
# Setup the environment | |
- run: json -I -f packages/svelte-vscode/package.json -e "this.version=\`${{ github.ref }}\`.split(\`-\`).pop()" | |
# To deploy we need isolated node_modules folders which pnpm won't do because it is a workspace | |
# So, remove the workspace | |
- run: "rm package.json pnpm-workspace.yaml pnpm-lock.yaml" | |
- run: "rm -rf packages/svelte-vscode/node_modules" # pnpm version of stuff, needs to be removed | |
# ... and remove the workspace:* references | |
- run: json -I -f packages/svelte-vscode/package.json -e 'this.dependencies["svelte-language-server"]="*"' | |
- run: json -I -f packages/svelte-vscode/package.json -e 'this.dependencies["typescript-svelte-plugin"]="*"' | |
- run: | | |
cd packages/svelte-vscode | |
npm install | |
# Just a hard constraint from the vscode marketplace's usage of azure tokens | |
echo "Once a year this expires, tell Orta to access https://dev.azure.com/ortatherox0608/_usersSettings/tokens (logging in with GitHub) to get a new one" | |
# Ship it | |
npx vsce publish -p $VSCE_TOKEN | |
npx ovsx publish -p $OVSX_TOKEN | |
env: | |
VSCE_TOKEN: ${{ secrets.AZURE_PAN_TOKEN }} | |
OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }} |