Skip to content

Commit

Permalink
Merge pull request #27 from MetRonnie/actions
Browse files Browse the repository at this point in the history
GH Actions fixes and add Dependabot config
  • Loading branch information
wxtim authored Jan 16, 2025
2 parents b8315b2 + ffd063c commit a271b5f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/bin/check-package-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ function getReleaseVersion() {

function setFailed(err) {
err = err instanceof Error ? err.toString() : err;
console.log(err);
console.log(`::error::${err}`);
process.exitCode = 1;
}
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
labels:
- 'dependencies'
14 changes: 5 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,25 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true

- name: Setup Node.js environment
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 'lts/*'

- name: Check release version matches package.json
run: node ./.github/bin/check-package-version ${{ github.ref }}

- name: Install vsce
run: npm install -g vsce

- name: Publish to VSCode Marketplace
env:
PAT: ${{ secrets.MARKETPLACE_PAT }}
run: vsce publish -p "$PAT"
run: npx @vscode/vsce publish -p "$PAT"

- name: Delete tag on failure
if: failure()
run: |
git push origin :${{ github.ref }}
echo "The GitHub release has been relegated to a draft and can be republished when the problems are fixed"
echo "::error::The GitHub release has been relegated to a draft and can be republished when the problems are fixed"

0 comments on commit a271b5f

Please sign in to comment.