-
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
Showing
2 changed files
with
100 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: π Continuous Delivery | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
bun-version: [latest] | ||
name: π Release | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: π€ Automated Release | ||
uses: google-github-actions/release-please-action@v3 | ||
id: automated_release | ||
with: | ||
release-type: 'node' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
bump-minor-pre-major: true | ||
prerelease: true | ||
release-as: 1.2.4 | ||
- name: π Checkout | ||
uses: actions/checkout@v4 | ||
- name: π Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: ${{ matrix.bun-version }} | ||
- name: π½ Install Dependencies | ||
run: bun install | ||
- name: π·οΈ Tag Stable Version | ||
if: ${{ steps.automated_release.outputs.release_created }} | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email github-actions[bot]@users.noreply.github.com | ||
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git" | ||
git tag -d stable || true | ||
git push origin :stable || true | ||
git tag -a stable -m "chore: release stable version ${{ steps.automated_release.outputs.tag_name }}" | ||
git push origin stable | ||
- name: πͺ¨ Publish to Open VSX Registry | ||
if: ${{ steps.automated_release.outputs.release_created }} | ||
uses: HaaLeo/publish-vscode-extension@v1 | ||
id: publish-open-vsx | ||
with: | ||
pat: ${{ secrets.OPEN_VSX_TOKEN }} | ||
- name: πΉ Publish to Visual Studio Marketplace | ||
if: ${{ steps.automated_release.outputs.release_created }} | ||
uses: HaaLeo/publish-vscode-extension@v1 | ||
with: | ||
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} | ||
registryUrl: https://marketplace.visualstudio.com | ||
extensionFile: ${{ steps.publish-open-vsx.outputs.vsixPath }} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: π€‘ Continuous Integration | ||
on: | ||
push: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
jobs: | ||
check: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
node-version: [21.x] | ||
env: | ||
SCOPRE_OWNER: '@pungrumpy' | ||
runs-on: ${{ matrix.os }} | ||
name: π§ͺ | ||
steps: | ||
- name: π Checkout | ||
uses: actions/checkout@v4 | ||
- name: π Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
- name: π΅ Cache bun | ||
uses: actions/cache@v3 | ||
id: cache-bun | ||
with: | ||
path: ~/.bun | ||
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} | ||
restore-keys: | | ||
${{ runner.os }}-bun- | ||
- name: ποΈ Build | ||
run: | | ||
bun add -g @vscode/vsce | ||
vsce package --no-yarn | ||
- name: π Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dullahan-latest | ||
path: dullahan-*.vsix |