Skip to content

Commit

Permalink
ci: allow specifying prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Desdaemon committed Aug 26, 2023
1 parent 97dd932 commit 137aa4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ max_line_length = 120
[*.rs]
indent_size = 4

[*.md]
[*.{md,yml,yaml}]
indent_style = space
indent_size = 2
max_line_length = 80
8 changes: 6 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
release_name:
type: string
description: Defaults to `nightly-YYYYMMDD`
prerelease:
type: boolean
default: true
schedule:
- cron: "0 5 * * *"

Expand Down Expand Up @@ -124,7 +127,8 @@ jobs:
- name: Inject custom release name
if: "${{ inputs.release_name != '' }}"
run: |
cat package.json | jq '. +{"_release":"${{ inputs.release_name }}"}' > package.json
cat package.json | jq '. +{"_release":"${{ inputs.release_name }}"}' > __temp__
mv __temp__ package.json
- run: pnpm package
- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -161,4 +165,4 @@ jobs:
name: ${{ env.TAG }}
tag_name: ${{ env.TAG }}
generate_release_notes: true
prerelease: true
prerelease: ${{ inputs.prerelease }}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"engines": {
"vscode": "^1.66.0"
},
"enabledApiProposals": [],
"activationEvents": [
"onLanguage:xml",
"onLanguage:python",
Expand Down

0 comments on commit 137aa4b

Please sign in to comment.