This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68baea9
commit 094ec88
Showing
1 changed file
with
19 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,30 @@ | ||
on: | ||
push: | ||
branches: | ||
- release/patch | ||
release: | ||
types: | ||
- created | ||
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 --allow-unrelated-histories --no-ff release/patch | ||
git push origin master | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
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 | ||
- 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 | ||
|
@@ -46,4 +35,4 @@ jobs: | |
if: success() && startsWith(github.ref, 'refs/tags/') | ||
run: npm run deploy\:patch | ||
env: | ||
VSCE_PAT: ${{ secrets.VSCE_PAT }} | ||
VSCE_PAT: ${{ secrets.VSCE_PAT }} |