Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ jobs:
OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }}
with:
sort: '["svelte2tsx", "svelte-language-server", "svelte-check", "svelte-vscode-nightly"]'
only: '["svelte2tsx", "svelte-language-server", "svelte-vscode-nightly"]'
install: "true"
4 changes: 2 additions & 2 deletions .github/workflows/DeployExtensionsProd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Tagged Production Deploys
on:
push:
tags:
- "*"
- "extensions-*"

jobs:
deploy:
Expand All @@ -24,7 +24,7 @@ jobs:
- run: "npm install -g json"

# Setup the environment
- run: 'json -I -f packages/svelte-vscode/package.json -e "this.version=\`${{ github.ref }}\`.split(\`/\`).pop()"'
- 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 yarn won't do because it is a workspace
# So, remove the workspace
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/DeploySvelteCheckProd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tagged Production Deploys

on:
push:
tags:
- "svelte-check-*"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
registry-url: "https://registry.npmjs.org"

# Ensure everything is compiling
- run: "yarn install"
- run: "yarn build"

# 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-check/package.json -e "this.version=\`${{ github.ref }}\`.split(\`-\`).pop()"'

# Ship it
- run: |
cd packages/svelte-check
npm install
npm publish

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}