Daily builds of the Svelte Language Tools Beta #397
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: Daily builds of the Svelte Language Tools Beta | |
# For testing the deploy | |
#on: push | |
# For production | |
on: | |
schedule: | |
- cron: "15 13 * * *" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16.x" | |
registry-url: "https://registry.npmjs.org" | |
cache: yarn | |
# 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-vscode/package.json -e "this.version=\`99.1.0\`"' | |
- run: 'json -I -f packages/svelte-vscode/package.json -e "this.preview=true"' | |
- run: 'json -I -f packages/svelte-vscode/package.json -e "this.name=\`svelte-vscode-nightly\`"' | |
- run: 'json -I -f packages/svelte-vscode/package.json -e "this.icon=\`icons/logo-nightly.png\`"' | |
- run: 'json -I -f packages/svelte-vscode/package.json -e "this.displayName=\`Svelte for VS Code Unstable Nightly Builds\`"' | |
# To deploy we need isolated node_modules folders which yarn won't do because it is a workspace | |
# So, remove the workspace | |
- run: "rm package.json yarn.lock" | |
- uses: orta/monorepo-deploy-nightly@master | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
VSCE_TOKEN: ${{ secrets.AZURE_PAN_TOKEN }} | |
OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }} | |
with: | |
sort: '["svelte2tsx", "svelte-language-server", "svelte-check", "svelte-vscode-nightly"]' | |
only: '["svelte-vscode-nightly"]' | |
install: "true" |