Skip to content

Commit e9f947b

Browse files
[AXON-29] chore: implement Github CI
1 parent 23d3e04 commit e9f947b

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/workflows/build.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Node.js
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: '20.x'
15+
- name: Install dependencies
16+
run: npm install
17+
- name: Run linter
18+
run: npm run lint
19+
- name: Run unit tests
20+
run: npm run test
21+
- name: Build the extension
22+
run: npx vsce package --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/

.github/workflows/release.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Node.js
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: '20.x'
15+
- name: Install dependencies
16+
run: npm install
17+
- name: Run linter
18+
run: npm run lint
19+
- name: Run unit tests
20+
run: npm run test
21+
- name: Build the extension
22+
run: echo vsce package --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/
23+
- name: Publish the extension
24+
# let's see if this gets masked on the build
25+
run: echo vsce publish -p ${{ secrets.VSCE_MARKETPLACE_TOKEN }} --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/ --packagePath atlascode-${GITHUB_REF##*/}.vsix
26+
- name: Publish to OpenVSX
27+
# let's see if this gets masked on the build
28+
run: echo npx ovsx publish "atlascode-${GITHUB_REF##*/}.vsix" -p ${{ secrets.OPENVSX_KEY }}
29+

0 commit comments

Comments
 (0)