diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml new file mode 100644 index 0000000..ec1ce04 --- /dev/null +++ b/.github/workflows/dev.yml @@ -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 \ No newline at end of file diff --git a/.github/.workflows/release.yml b/.github/workflows/release.yml similarity index 65% rename from .github/.workflows/release.yml rename to .github/workflows/release.yml index a841016..3235ec0 100644 --- a/.github/.workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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 diff --git a/package.json b/package.json index 18c35f7..9a6e5f7 100644 --- a/package.json +++ b/package.json @@ -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"