Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Update merge process #4

Update merge process

Update merge process #4

Workflow file for this run

on:
push:
branches:
- release/patch
release:
types:
- created
jobs:
merge:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "monstajoe2002"
- name: Merge to master
run: |
git fetch
git pull
git checkout master
git merge --no-ff release/patch
git push origin master
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install
publish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/')
run: npm run deploy\:patch
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}