Skip to content

Commit

Permalink
add CD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuss committed Nov 25, 2023
1 parent 7200812 commit 9e75d8c
Show file tree
Hide file tree
Showing 4 changed files with 704 additions and 15 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release Published

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- run: yarn

- uses: scaffoldly/bump-version-action@v1
with:
action: postrelease
version-file: package.json
repo-token: ${{ secrets.GITHUB_TOKEN }}

- run: yarn deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "vscode-extension",
"publisher": "saml-to",
"displayName": "SAML.to VSCode Extension",
"description": "VSCode Extension for SAML.to",
"version": "0.0.2-0",
Expand Down Expand Up @@ -28,21 +29,23 @@
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
"test": "node ./out/test/runTest.js",
"deploy": "vsce publish --yarn"
},
"devDependencies": {
"@types/vscode": "^1.84.0",
"@types/mocha": "^10.0.3",
"@types/node": "18.x",
"@types/vscode": "^1.84.0",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vscode/test-electron": "^2.3.6",
"@vscode/vsce": "^2.22.0",
"eslint": "^8.52.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"typescript": "^5.2.2",
"ts-loader": "^9.5.0",
"typescript": "^5.2.2",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"@vscode/test-electron": "^2.3.6"
"webpack-cli": "^5.1.4"
}
}
Loading

0 comments on commit 9e75d8c

Please sign in to comment.