diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..782a0ad --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..54a80d4 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,36 @@ +name: Publish to the Marketplace and Open VSX + +on: + workflow_dispatch: + + release: + types: [created] + +jobs: + publish: + name: Publish + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: main + + - name: Use Node.js 18.x + uses: actions/setup-node@v4 + with: + node-version: 18.x + registry-url: 'https://registry.npmjs.org' + + - name: Install NPM Dependencies + run: | + npm install + npm install -g vsce ovsx + + - name: Publish to Open VSX + run: npx ovsx publish -p ${{ secrets.OPEN_VSX_TOKEN }} + + - name: Publish to Marketplace + run: vsce publish -p ${{ secrets.VS_MARKETPLACE_TOKEN }} diff --git a/.github/workflows/webpack.yaml b/.github/workflows/webpack.yaml new file mode 100644 index 0000000..aff79cb --- /dev/null +++ b/.github/workflows/webpack.yaml @@ -0,0 +1,43 @@ +name: NodeJS with Webpack + +on: + workflow_dispatch: + + push: + branches: ["main"] + + pull_request: + branches: ["main"] + +jobs: + build: + name: Build and Package + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Use Node.js 18.x + uses: actions/setup-node@v4 + with: + node-version: 18.x + registry-url: 'https://registry.npmjs.org' + + - name: Install NPM Dependencies + run: | + npm install + npm install -g vsce + + - name: Build and Package + run: | + npx webpack + vsce package + + - name: Upload VSIX + uses: actions/upload-artifact@v4 + with: + name: VSIX + path: ./*.vsix + if-no-files-found: error diff --git a/README.md b/README.md index 7c308b8..ebc649a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # GitHub Local Actions + + +[![Version](https://img.shields.io/visual-studio-marketplace/v/SanjulaGanepola.github-local-actions)](https://marketplace.visualstudio.com/items?itemName=SanjulaGanepola.github-local-actions) +[![Installs](https://img.shields.io/visual-studio-marketplace/i/SanjulaGanepola.github-local-actions)](https://marketplace.visualstudio.com/items?itemName=SanjulaGanepola.github-local-actions) + Run your GitHub Actions locally! ## Bugs and Feature Requests diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..8286df3 Binary files /dev/null and b/icon.png differ diff --git a/package.json b/package.json index 54d8024..a3a82cb 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,31 @@ { "name": "github-local-actions", - "displayName": "github-local-actions", + "displayName": "GitHub Local Actions", "description": "Run your GitHub Actions locally!", - "version": "0.0.1", - "engines": { - "vscode": "^1.93.0" + "icon": "icon.png", + "author": { + "name": "Sanjula Ganepola", + "url": "https://github.com/sanjulaganepola" }, + "publisher": "SanjulaGanepola", + "license": "Apache-2.0", + "version": "0.0.1", + "repository": { + "url": "https://github.com/SanjulaGanepola/github-local-actions" + }, + "homepage": "https://github.com/SanjulaGanepola/github-local-actions/blob/main/README.md", + "bugs": { + "url": "https://github.com/SanjulaGanepola/github-local-actions/issues" + }, + "keywords": [ + "GitHub Actions" + ], "categories": [ "Other" ], + "engines": { + "vscode": "^1.93.0" + }, "activationEvents": [], "main": "./dist/extension.js", "contributes": {