Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Release

on:
push:
branches:
- 'development' # Triggers on pushes to the development branch

jobs:
build-and-release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install dependencies
run: npm install

- name: Package VS Code extension
run: npx @vscode/vsce package
14 changes: 10 additions & 4 deletions .github/.workflows/release.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- 'master' # Triggers on pushes to the master branch
tags:
- 'v*.*.*' # Triggers on version tags like v1.0.0

jobs:
build-and-release:
Expand All @@ -18,13 +16,21 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install dependencies
run: npm install

- name: Package VS Code extension
run: npx vsce package
run: npx @vscode/vsce package

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Responsive Image Generator",
"description": "Generate responsive images in multiple sizes for web development. Works inline in the text editor.",
"version": "1.0.0",
"publisher": "Colton McGraw",
"publisher": "coltonmcgraw",
"repository": {
"type": "git",
"url": "https://github.com/ColtMcG0/responsive-image-generator.vs-code"
Expand Down