Add project information and workflows
Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
10
.github/dependabot.yml
vendored
Normal file
10
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "npm"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
36
.github/workflows/publish.yaml
vendored
Normal file
36
.github/workflows/publish.yaml
vendored
Normal file
@@ -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 }}
|
||||||
43
.github/workflows/webpack.yaml
vendored
Normal file
43
.github/workflows/webpack.yaml
vendored
Normal file
@@ -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
|
||||||
@@ -1,5 +1,10 @@
|
|||||||
# GitHub Local Actions
|
# GitHub Local Actions
|
||||||
|
|
||||||
|
<img src="./icon.png" align="right" width="128" height="128">
|
||||||
|
|
||||||
|
[](https://marketplace.visualstudio.com/items?itemName=SanjulaGanepola.github-local-actions)
|
||||||
|
[](https://marketplace.visualstudio.com/items?itemName=SanjulaGanepola.github-local-actions)
|
||||||
|
|
||||||
Run your GitHub Actions locally!
|
Run your GitHub Actions locally!
|
||||||
|
|
||||||
## Bugs and Feature Requests
|
## Bugs and Feature Requests
|
||||||
|
|||||||
25
package.json
25
package.json
@@ -1,14 +1,31 @@
|
|||||||
{
|
{
|
||||||
"name": "github-local-actions",
|
"name": "github-local-actions",
|
||||||
"displayName": "github-local-actions",
|
"displayName": "GitHub Local Actions",
|
||||||
"description": "Run your GitHub Actions locally!",
|
"description": "Run your GitHub Actions locally!",
|
||||||
"version": "0.0.1",
|
"icon": "icon.png",
|
||||||
"engines": {
|
"author": {
|
||||||
"vscode": "^1.93.0"
|
"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": [
|
"categories": [
|
||||||
"Other"
|
"Other"
|
||||||
],
|
],
|
||||||
|
"engines": {
|
||||||
|
"vscode": "^1.93.0"
|
||||||
|
},
|
||||||
"activationEvents": [],
|
"activationEvents": [],
|
||||||
"main": "./dist/extension.js",
|
"main": "./dist/extension.js",
|
||||||
"contributes": {
|
"contributes": {
|
||||||
|
|||||||
Reference in New Issue
Block a user