Skip to content

Commit e4f181a

Browse files
committed
feat: change pipes
1 parent 55e836a commit e4f181a

File tree

4 files changed

+100
-80
lines changed

4 files changed

+100
-80
lines changed

.github/workflows/build.yml

-27
This file was deleted.

.github/workflows/lint.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint:
13+
name: Lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
24+
- name: Install dependencies
25+
run: npm ci --cache ../.npm --prefer-offline
26+
27+
- name: Run Linting
28+
run: npm run lint

.github/workflows/publish.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
publish:
10+
name: Publish to VSCode Extension Marketplace
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Publish to VSCode Extension Marketplace
25+
uses: lannonbr/[email protected]
26+
with:
27+
args: "publish -p $PUBLISHER_TOKEN"
28+
env:
29+
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}

.github/workflows/release.yml

+43-53
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,55 @@
11
name: Release
2+
23
on:
34
push:
45
branches:
56
- main
7+
68
jobs:
79
release:
10+
name: GitHub Release
811
runs-on: ubuntu-latest
912
steps:
10-
- name: Checkout code
11-
uses: actions/checkout@v3
12-
- name: Set up Node.js
13-
uses: actions/setup-node@v3
14-
with:
15-
node-version: '18.x'
16-
- name: Install dependencies
17-
run: npm install
18-
- name: Commit any changes (if needed)
19-
run: |
20-
git config user.name "github-actions[bot]"
21-
git config user.email "github-actions[bot]@users.noreply.github.com"
22-
git diff --quiet || (git add . && git commit -m "ci: auto-commit before version bump")
23-
24-
- name: Increment version
25-
id: version
26-
run: |
27-
current_version=$(npm version patch | sed 's/^v//')
28-
echo "new_version=$current_version" >> $GITHUB_ENV
29-
- name: Build the extension
30-
run: npm run compile
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Increment version and create release
25+
id: version
26+
run: |
27+
current_version=$(npm version patch)
28+
echo "new_version=$current_version" >> $GITHUB_ENV
29+
30+
- name: Build the extension
31+
run: npm run compile
3132

32-
- name: Package the extension
33-
id: package
34-
run: |
35-
npm run build
36-
echo "Listing files in the directory to verify .vsix file is generated:"
37-
ls -lh
38-
ls -lh *.vsix || echo "No .vsix file found!"
39-
if [ -f *.vsix ]; then echo "vsix_file_exists=true" >> $GITHUB_ENV; else echo "vsix_file_exists=false" >> $GITHUB_ENV; fi
40-
- name: Create GitHub Release
41-
if: success() && env.vsix_file_exists == 'true'
42-
uses: softprops/action-gh-release@v1
43-
with:
44-
files: '*.vsix'
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
- name: Package the extension
34+
run: |
35+
npm run build
36+
echo "Listing files in the directory to verify .vsix file is generated:"
37+
ls -lh
38+
ls -lh *.vsix || echo "No .vsix file found!"
4739
48-
- name: Publish to Visual Studio Marketplace
49-
if: success() && env.vsix_file_exists == 'true'
50-
run: |
51-
vsce publish
52-
env:
53-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
40+
- name: Create GitHub Release
41+
if: success() && steps.package.outputs.vsix_file_exists == 'true'
42+
uses: softprops/action-gh-release@v1
43+
with:
44+
files: '*.vsix'
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5447

55-
- name: Commit and push version update
56-
if: success() && env.vsix_file_exists == 'true'
57-
run: |
58-
git config user.name "github-actions[bot]"
59-
git config user.email "github-actions[bot]@users.noreply.github.com"
60-
git add package.json
61-
git commit -m "ci: bump version to ${{ env.new_version }}"
62-
git tag ${{ env.new_version }}
63-
git push origin main --tags
64-
env:
65-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
- name: Commit and push version update
49+
run: |
50+
git config user.name "github-actions[bot]"
51+
git config user.email "github-actions[bot]@users.noreply.github.com"
52+
git add package.json
53+
git commit -m "ci: bump version to ${{ env.new_version }}"
54+
git tag ${{ env.new_version }}
55+
git push origin main --tags

0 commit comments

Comments
 (0)